mirror of
https://github.com/boostorg/core.git
synced 2026-05-04 19:54:17 +02:00
Add core::demangled_name.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user