// // Copyright 2012-2019 Antony Polukhin. // // 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 // This cpp file: // * tests BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING macro // * outputs full ctti name so that TypeIndex library could be adjust to new compiler without requesting regression tester's help #define BOOST_TYPE_INDEX_CTTI_USER_DEFINED_PARSING (0,0,false,"") #include namespace user_defined_namespace { class user_defined_class {}; } class empty { }; int main() { using namespace boost::typeindex; std::cout << "int: " << ctti_type_index::type_id() << '\n'; std::cout << "double: " << ctti_type_index::type_id() << '\n'; std::cout << "user_defined_namespace::user_defined_class: " << ctti_type_index::type_id() << '\n'; std::cout << "empty:" << ctti_type_index::type_id() << '\n'; return 0; }