Lift core::detail::demange to core, move demangled_name to typeinfo.hpp.

This commit is contained in:
Peter Dimov
2014-06-06 23:30:32 +03:00
parent 231f4406e9
commit cee977fc84
6 changed files with 43 additions and 25 deletions

23
test/demangle_test.cpp Normal file
View File

@@ -0,0 +1,23 @@
//
// Trivial test for core::demangle
//
// 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/demangle.hpp>
#include <iostream>
template<class T1, class T2> struct Y1
{
};
int main()
{
typedef Y1<int, long> T;
std::cout << boost::core::demangle( typeid( T ).name() );
return 0;
}