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
11#include <boost/core/typeinfo.hpp>
12#include <iostream>
13
14template<class T1, class T2> struct Y1
15{
16};
17
18int main()
19{
20 typedef Y1<int, long> T;
21 std::cout << boost::core::demangled_name( BOOST_CORE_TYPEID( T ) );
22 return 0;
23}
24

source code of boost/libs/core/test/demangled_name_test.cpp