$NetBSD: patch-src_data_hash__queue__node.h,v 1.3 2013/09/18 16:32:05 joerg Exp $ --- src/data/hash_queue_node.h.orig 2012-03-20 15:10:16.000000000 +0000 +++ src/data/hash_queue_node.h @@ -38,7 +38,13 @@ #define LIBTORRENT_DATA_HASH_QUEUE_NODE_H #include +#if __cplusplus >= 201103L +#include +using std::function; +#else #include +using std::tr1::function; +#endif #include #include "chunk_handle.h" @@ -50,7 +56,7 @@ class download_data; class HashQueueNode { public: - typedef std::tr1::function slot_done_type; + typedef function slot_done_type; typedef download_data* id_type; HashQueueNode(id_type id, HashChunk* c, slot_done_type d) :