$NetBSD: patch-src_torrent_utils_log.h,v 1.3 2013/09/18 16:32:05 joerg Exp $ --- src/torrent/utils/log.h.orig 2012-04-20 06:41:43.000000000 +0000 +++ src/torrent/utils/log.h @@ -39,8 +39,17 @@ #include #include +#if __cplusplus >= 201103L +#include +#include +using std::array; +using std::function; +#else #include #include +using std::tr1::array; +using std::tr1::function; +#endif #include namespace torrent { @@ -147,7 +156,7 @@ class DownloadInfo; class download_data; class log_buffer; -typedef std::tr1::function log_slot; +typedef function log_slot; typedef std::vector > log_output_list; class LIBTORRENT_EXPORT log_group { @@ -185,7 +194,7 @@ private: log_slot* m_last; }; -typedef std::tr1::array log_group_list; +typedef array log_group_list; extern log_group_list log_groups LIBTORRENT_EXPORT; extern log_output_list log_outputs LIBTORRENT_EXPORT;