7 #include <boost/test/unit_test.hpp> 15 template<
typename T> Ignore(
T&&) {}
18 bool Spannable(T&& value, decltype(
Span{value})* enable =
nullptr)
22 bool Spannable(Ignore)
27 #if defined(__clang__) 28 # pragma clang diagnostic push 29 # pragma clang diagnostic ignored "-Wunneeded-member-function" 30 # pragma clang diagnostic ignored "-Wunused-member-function" 42 #if defined(__clang__) 43 # pragma clang diagnostic pop 47 BOOST_AUTO_TEST_SUITE(span_tests)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(span_constructor_sfinae)
A Span is an object that can refer to a contiguous sequence of objects.
#define BOOST_CHECK(expr)