$NetBSD: patch-src_rpc_xmlrpc.h,v 1.3 2013/09/18 16:33:09 joerg Exp $ --- src/rpc/xmlrpc.h.orig 2012-02-14 03:32:01.000000000 +0000 +++ src/rpc/xmlrpc.h @@ -37,7 +37,12 @@ #ifndef RTORRENT_RPC_XMLRPC_H #define RTORRENT_RPC_XMLRPC_H +#if __cplusplus >= 201103L +using std::function; +#else #include +using std::tr1::function; +#endif #include namespace core { @@ -54,11 +59,11 @@ namespace rpc { class XmlRpc { public: - typedef std::tr1::function slot_download; - typedef std::tr1::function slot_file; - typedef std::tr1::function slot_tracker; - typedef std::tr1::function slot_peer; - typedef std::tr1::function slot_write; + typedef function slot_download; + typedef function slot_file; + typedef function slot_tracker; + typedef function slot_peer; + typedef function slot_write; static const int dialect_generic = 0; static const int dialect_i8 = 1;