11 #include "ndn-cpp-config.hpp"
30 #include <boost/lexical_cast.hpp>
31 #include <boost/asio.hpp>
32 #include <boost/date_time/posix_time/posix_time.hpp>
33 #include <boost/utility.hpp>
35 #include <boost/iostreams/detail/ios.hpp>
36 #include <boost/iostreams/categories.hpp>
37 #include <boost/iostreams/stream.hpp>
39 #if defined(__GNUC__) || defined(__clang__)
40 #define DEPRECATED(func) func __attribute__ ((deprecated))
41 #elif defined(_MSC_VER)
42 #define DEPRECATED(func) __declspec(deprecated) func
44 #pragma message("DEPRECATED not implemented")
45 #define DEPRECATED(func) func
48 #ifdef NDN_CPP_HAVE_CXX11
51 # if !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L
52 # error "NDN-CPP-DEV library is configured and compiled in C++11 mode, but the current compiler is not C++11 enabled"
53 # endif // !defined(__GXX_EXPERIMENTAL_CXX0X__) && __cplusplus < 201103L
54 #endif // defined(__GNUC__)
56 #if defined(__clang__) && __cplusplus < 201103L
57 # error "NDN-CPP-DEV library is configured and compiled in C++11 mode, but the current compiler is not C++11 enabled"
58 #endif // defined(__clang__) && (__cplusplus < 201103L)
66 namespace ptr_lib = std;
67 namespace func_lib = std;
69 using std::shared_ptr;
71 using std::make_shared;
72 using std::enable_shared_from_this;
74 using std::static_pointer_cast;
75 using std::dynamic_pointer_cast;
76 using std::const_pointer_cast;
80 using std::placeholders;
87 #include <boost/shared_ptr.hpp>
88 #include <boost/weak_ptr.hpp>
89 #include <boost/enable_shared_from_this.hpp>
90 #include <boost/make_shared.hpp>
92 #include <boost/function.hpp>
93 #include <boost/bind.hpp>
97 namespace ptr_lib = boost;
98 namespace func_lib = boost;
100 using boost::shared_ptr;
101 using boost::weak_ptr;
102 using boost::make_shared;
103 using boost::enable_shared_from_this;
105 using boost::static_pointer_cast;
106 using boost::dynamic_pointer_cast;
107 using boost::const_pointer_cast;
109 using boost::function;
114 #endif // NDN_CPP_HAVE_CXX11
118 using boost::noncopyable;