track_13621.cpp 526 B

1234567891011121314151617181920212223
  1. //
  2. // Copyright Antony Polukhin, 2018.
  3. //
  4. // Distributed under the Boost Software License, Version 1.0. (See
  5. // accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt)
  7. #include <boost/type_index/ctti_type_index.hpp>
  8. #include <string>
  9. #include <boost/core/lightweight_test.hpp>
  10. class empty
  11. {
  12. };
  13. int main()
  14. {
  15. std::string name = boost::typeindex::ctti_type_index::type_id<empty>().pretty_name();
  16. BOOST_TEST(name.find("empty") != std::string::npos);
  17. return boost::report_errors();
  18. }