// // Copyright Klemens Morgenstern, 2012-2015. // // 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 #include namespace my_namespace1 { class my_class{}; } namespace my_namespace2 { class my_class{}; } namespace my_namespace3 { template struct my_template {}; } #if !defined( BOOST_NO_RTTI ) template void compare() { typedef boost::typeindex::ctti_type_index ctti; typedef boost::typeindex::stl_type_index stl; BOOST_TEST_EQ( ctti::type_id().pretty_name(), stl::type_id().pretty_name() ); } int main() { compare(); compare(); compare(); compare(); compare(); compare >(); return boost::report_errors(); } #else int main() { return 0; } #endif