Add core::demangled_name.

This commit is contained in:
Peter Dimov committed 2014-06-06 15:49:29 +03:00
1 parent dd1121d589
commit 13d1a807ad
4 files changed
+131 -1

No files matched your search

+2
View File
@@ -68,3 +68,5 @@ run typeinfo_test.cpp : : : <rtti>off : typeinfo_test_no_rtti ;
run iterator_test.cpp ;
run detail_iterator_test.cpp ;
run demangled_name_test.cpp : : : <test-info>always_show_run_output ;
+24
View File
@@ -0,0 +1,24 @@
//
// Trivial test for core::demangled_name
//
// Copyright (c) 2014 Peter Dimov
//
// 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 <boost/core/demangled_name.hpp>
#include <boost/core/typeinfo.hpp>
#include <iostream>
template<class T1, class T2> struct Y1
{
};
int main()
{
typedef Y1<int, long> T;
std::cout << boost::core::demangled_name( BOOST_CORE_TYPEID( T ) );
return 0;
}