mirror of
https://github.com/boostorg/exception.git
synced 2025-07-15 13:36:31 +02:00
Bug in type_info.hpp
[SVN r48634]
This commit is contained in:
@ -150,7 +150,7 @@ void
|
|||||||
dump_file_info( boost::exception const & x )
|
dump_file_info( boost::exception const & x )
|
||||||
{
|
{
|
||||||
if( boost::shared_ptr<std::string const> fn = boost::get_error_info<file_name_info>(x) )
|
if( boost::shared_ptr<std::string const> fn = boost::get_error_info<file_name_info>(x) )
|
||||||
std::cout << "Source file name: " << *fn << "\n";
|
std::cout << "File name: " << *fn << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -8,6 +8,9 @@
|
|||||||
|
|
||||||
#include <boost/detail/sp_typeinfo.hpp>
|
#include <boost/detail/sp_typeinfo.hpp>
|
||||||
#include <boost/current_function.hpp>
|
#include <boost/current_function.hpp>
|
||||||
|
#ifndef BOOST_NO_TYPEID
|
||||||
|
#include <boost/type.hpp>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace
|
namespace
|
||||||
boost
|
boost
|
||||||
@ -20,7 +23,7 @@ boost
|
|||||||
#ifdef BOOST_NO_TYPEID
|
#ifdef BOOST_NO_TYPEID
|
||||||
return BOOST_CURRENT_FUNCTION;
|
return BOOST_CURRENT_FUNCTION;
|
||||||
#else
|
#else
|
||||||
return typeid(T).name();
|
return typeid(type<T>).name();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -24,10 +24,6 @@
|
|||||||
#include <boost/detail/workaround.hpp>
|
#include <boost/detail/workaround.hpp>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
|
|
||||||
#if !defined( BOOST_EXCEPTION_DISABLE )
|
|
||||||
#define BOOST_EXCEPTION_DISABLE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, < 0x590 )
|
#if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, < 0x590 )
|
||||||
# define BOOST_EXCEPTION_DISABLE
|
# define BOOST_EXCEPTION_DISABLE
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user