// (C) Copyright Edward Diener 2019 // Use, modification and distribution are subject to 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 "test_has_union.hpp" #include int main() { BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnIntType)::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnIntTypeReference)::value); BOOST_TEST(!NameStruct::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(BType)::value); BOOST_TEST(!TheInteger::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(CType)::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnotherIntegerType)::value); BOOST_TEST(!SomethingElse::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(NoOtherType)::value); BOOST_TEST(BOOST_TTI_HAS_UNION_GEN(CTypeUnion)::value); BOOST_TEST(SimpleUT::value); BOOST_TEST(BOOST_TTI_HAS_UNION_GEN(AnotherUnion)::value); BOOST_TEST(!EInB::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnEnumTtype)::value); BOOST_TEST(!AnotherE::value); BOOST_TEST(!EClass::value); BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnotherEnumClassType)::value); BOOST_TEST(BOOST_TTI_HAS_UNION_GEN(InnerUnion)::value); // Passing non-class enclosing type will return false BOOST_TEST(!BOOST_TTI_HAS_UNION_GEN(AnIntTypeReference)::value); BOOST_TEST(!NameStruct::value); return boost::report_errors(); }