28 #ifndef NDN_COMMON_HPP 29 #define NDN_COMMON_HPP 31 #include "ndn-cxx-config.hpp" 35 #ifdef NDN_CXX_HAVE_TESTS 36 #define NDN_CXX_VIRTUAL_WITH_TESTS virtual 37 #define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PROTECTED public 38 #define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE public 39 #define NDN_CXX_PROTECTED_WITH_TESTS_ELSE_PRIVATE protected 41 #define NDN_CXX_VIRTUAL_WITH_TESTS 42 #define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PROTECTED protected 43 #define NDN_CXX_PUBLIC_WITH_TESTS_ELSE_PRIVATE private 44 #define NDN_CXX_PROTECTED_WITH_TESTS_ELSE_PRIVATE private 48 #if __cplusplus < 201103L && !defined(__GXX_EXPERIMENTAL_CXX0X__) 49 # error "ndn-cxx applications must be compiled using the C++11 standard (-std=c++11)" 62 #include <type_traits> 68 using std::shared_ptr;
69 using std::unique_ptr;
71 using std::bad_weak_ptr;
72 using std::make_shared;
73 using std::enable_shared_from_this;
75 using std::static_pointer_cast;
76 using std::dynamic_pointer_cast;
77 using std::const_pointer_cast;
90 #define BOOST_BIND_NO_PLACEHOLDERS 91 #include <boost/is_placeholder.hpp> 93 #define NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(N) \ 95 struct is_placeholder<typename std::remove_const<decltype(_##N)>::type> \ 101 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(1)
102 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(2)
103 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(3)
104 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(4)
105 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(5)
106 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(6)
107 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(7)
108 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(8)
109 NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER(9)
110 #undef NDN_CXX_SPECIALIZE_BOOST_IS_PLACEHOLDER_FOR_STD_PLACEHOLDER 114 #include <boost/assert.hpp> 115 #include <boost/concept_check.hpp> 116 #include <boost/noncopyable.hpp> 117 #include <boost/throw_exception.hpp> 120 using boost::noncopyable;
125 #endif // NDN_COMMON_HPP
Copyright (c) 2013-2017 Regents of the University of California.