Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r48634 - in trunk: boost boost/exception/detail libs/exception/example
From: emil_at_[hidden]
Date: 2008-09-06 14:40:03


Author: emildotchevski
Date: 2008-09-06 14:40:02 EDT (Sat, 06 Sep 2008)
New Revision: 48634
URL: http://svn.boost.org/trac/boost/changeset/48634

Log:
Bug in type_info.hpp
Text files modified:
   trunk/boost/exception/detail/type_info.hpp | 5 ++++-
   trunk/boost/throw_exception.hpp | 4 ----
   trunk/libs/exception/example/example_io.cpp | 2 +-
   3 files changed, 5 insertions(+), 6 deletions(-)

Modified: trunk/boost/exception/detail/type_info.hpp
==============================================================================
--- trunk/boost/exception/detail/type_info.hpp (original)
+++ trunk/boost/exception/detail/type_info.hpp 2008-09-06 14:40:02 EDT (Sat, 06 Sep 2008)
@@ -8,6 +8,9 @@
 
 #include <boost/detail/sp_typeinfo.hpp>
 #include <boost/current_function.hpp>
+#ifndef BOOST_NO_TYPEID
+#include <boost/type.hpp>
+#endif
 
 namespace
 boost
@@ -20,7 +23,7 @@
 #ifdef BOOST_NO_TYPEID
         return BOOST_CURRENT_FUNCTION;
 #else
- return typeid(T).name();
+ return typeid(type<T>).name();
 #endif
         }
 

Modified: trunk/boost/throw_exception.hpp
==============================================================================
--- trunk/boost/throw_exception.hpp (original)
+++ trunk/boost/throw_exception.hpp 2008-09-06 14:40:02 EDT (Sat, 06 Sep 2008)
@@ -24,10 +24,6 @@
 #include <boost/detail/workaround.hpp>
 #include <exception>
 
-#if !defined( BOOST_EXCEPTION_DISABLE )
-#define BOOST_EXCEPTION_DISABLE
-#endif
-
 #if !defined( BOOST_EXCEPTION_DISABLE ) && defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, < 0x590 )
 # define BOOST_EXCEPTION_DISABLE
 #endif

Modified: trunk/libs/exception/example/example_io.cpp
==============================================================================
--- trunk/libs/exception/example/example_io.cpp (original)
+++ trunk/libs/exception/example/example_io.cpp 2008-09-06 14:40:02 EDT (Sat, 06 Sep 2008)
@@ -150,7 +150,7 @@
 dump_file_info( boost::exception const & 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


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk