mirror of
https://github.com/boostorg/core.git
synced 2025-11-29 13:50:10 +01:00
Lift core::detail::demange to core, move demangled_name to typeinfo.hpp.
This commit is contained in:
@@ -59,7 +59,9 @@ run-fail lightweight_test_fail4.cpp ;
|
||||
run-fail lightweight_test_fail5.cpp ;
|
||||
run-fail lightweight_test_fail6.cpp ;
|
||||
run-fail lightweight_test_fail7.cpp ;
|
||||
run-fail lightweight_test_fail7.cpp : : : <rtti>off : lightweight_test_fail7_no_rtti ;
|
||||
run-fail lightweight_test_fail8.cpp ;
|
||||
run-fail lightweight_test_fail8.cpp : : : <rtti>off : lightweight_test_fail8_no_rtti ;
|
||||
|
||||
run is_same_test.cpp ;
|
||||
|
||||
@@ -69,4 +71,7 @@ run typeinfo_test.cpp : : : <rtti>off : typeinfo_test_no_rtti ;
|
||||
run iterator_test.cpp ;
|
||||
run detail_iterator_test.cpp ;
|
||||
|
||||
run demangle_test.cpp : : : <test-info>always_show_run_output ;
|
||||
|
||||
run demangled_name_test.cpp : : : <test-info>always_show_run_output ;
|
||||
run demangled_name_test.cpp : : : <rtti>off <test-info>always_show_run_output : demangled_name_test_no_rtti ;
|
||||
|
||||
23
test/demangle_test.cpp
Normal file
23
test/demangle_test.cpp
Normal 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;
|
||||
}
|
||||
@@ -8,7 +8,6 @@
|
||||
// http://www.boost.org/LICENSE_1_0.txt
|
||||
//
|
||||
|
||||
#include <boost/core/demangled_name.hpp>
|
||||
#include <boost/core/typeinfo.hpp>
|
||||
#include <iostream>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user