// Copyright 2021 Peter Dimov // Distributed under the Boost Software License, Version 1.0. // https://www.boost.org/LICENSE_1_0.txt #include #include #include #if !defined(BOOST_DESCRIBE_CXX11) #include BOOST_PRAGMA_MESSAGE("Skipping test because C++11 is not available") int main() {} #else struct X1 {}; BOOST_DESCRIBE_STRUCT(X1, (), ()) class X2 { BOOST_DESCRIBE_CLASS(X2, (), (), (), ()) }; struct X3 {}; class X4 {}; union X5 {}; struct X6: X1 {}; struct X7: X2 {}; int main() { using boost::describe::has_describe_bases; #if defined(BOOST_DESCRIBE_CXX14) BOOST_TEST_TRAIT_TRUE((has_describe_bases)); BOOST_TEST_TRAIT_TRUE((has_describe_bases)); #else BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); #endif BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); BOOST_TEST_TRAIT_FALSE((has_describe_bases)); return boost::report_errors(); } #endif // !defined(BOOST_DESCRIBE_CXX11)