$NetBSD: patch-src_data_hash__queue.h,v 1.3 2013/09/18 16:32:05 joerg Exp $ --- src/data/hash_queue.h.orig 2012-02-17 05:00:42.000000000 +0000 +++ src/data/hash_queue.h @@ -40,7 +40,13 @@ #include #include #include +#if __cplusplus >= 201103L +#include +using std::function; +#else #include +using std::tr1::function; +#endif #include "torrent/hash_string.h" #include "hash_queue_node.h" @@ -63,7 +69,7 @@ public: typedef std::map done_chunks_type; typedef HashQueueNode::slot_done_type slot_done_type; - typedef std::tr1::function slot_bool; + typedef function slot_bool; using base_type::iterator;