// Copyright 2018 Daniel James. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include namespace is_xxx_test { template struct thing1 {}; template struct thing2 {}; } BOOST_DETAIL_IS_XXX_DEF(thing1, is_xxx_test::thing1, 1); BOOST_DETAIL_IS_XXX_DEF(thing2, is_xxx_test::thing2, 2); BOOST_STATIC_ASSERT((is_thing1 >::value)); BOOST_STATIC_ASSERT((!is_thing1 >::value)); BOOST_STATIC_ASSERT((!is_thing2 >::value)); BOOST_STATIC_ASSERT((is_thing2 >::value)); BOOST_STATIC_ASSERT((is_thing2 >::value)); int main() {}