demangled_name_test.cpp 473 B

1234567891011121314151617181920212223
  1. //
  2. // Trivial test for core::demangled_name
  3. //
  4. // Copyright (c) 2014 Peter Dimov
  5. //
  6. // Distributed under the Boost Software License, Version 1.0.
  7. // See accompanying file LICENSE_1_0.txt or copy at
  8. // http://www.boost.org/LICENSE_1_0.txt
  9. //
  10. #include <boost/core/typeinfo.hpp>
  11. #include <iostream>
  12. template<class T1, class T2> struct Y1
  13. {
  14. };
  15. int main()
  16. {
  17. typedef Y1<int, long> T;
  18. std::cout << boost::core::demangled_name( BOOST_CORE_TYPEID( T ) );
  19. return 0;
  20. }