26 #ifndef NFD_CORE_ASSERTS_HPP
27 #define NFD_CORE_ASSERTS_HPP
30 #include <boost/concept/assert.hpp>
31 #include <boost/concept_check.hpp>
32 #include <type_traits>
42 ,
public boost::DefaultConstructible<T>
52 #define NFD_ASSERT_DEFAULT_CONSTRUCTIBLE(T) \
53 static_assert(std::is_default_constructible<T>::value, \
54 #T " must be default-constructible"); \
55 BOOST_CONCEPT_ASSERT((boost::DefaultConstructible<T>))
62 #define NFD_ASSERT_FORWARD_ITERATOR(T) \
63 BOOST_CONCEPT_ASSERT((::nfd::detail::StlForwardIteratorConcept<T>)); \
64 static_assert(std::is_default_constructible<T>::value, \
65 #T " must be default-constructible")
67 #endif // NFD_CORE_ASSERTS_HPP
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...