Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r49571 - in trunk/boost: config/compiler function
From: kbelco_at_[hidden]
Date: 2008-11-03 13:37:49


Author: noel_belcourt
Date: 2008-11-03 13:37:49 EST (Mon, 03 Nov 2008)
New Revision: 49571
URL: http://svn.boost.org/trac/boost/changeset/49571

Log:
Both Sun and Pgi on Linux correctly put typeinfo into the std
namespace, but function_base keys off the
BOOST_NO_EXCEPTION_STD_NAMESPACE macro instead of the
BOOST_NO_STD_TYPEINFO macro. The attached patch changes
function_base to use the typeinfo macro. Because eVC 4.2 doesn't
put typeinfo into the std namespace, I need to define
BOOST_NO_STD_TYPEINFO only for this eVC version.

Text files modified:
   trunk/boost/config/compiler/visualc.hpp | 5 +++++
   trunk/boost/function/function_base.hpp | 2 +-
   2 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/config/compiler/visualc.hpp
==============================================================================
--- trunk/boost/config/compiler/visualc.hpp (original)
+++ trunk/boost/config/compiler/visualc.hpp 2008-11-03 13:37:49 EST (Mon, 03 Nov 2008)
@@ -22,6 +22,11 @@
 # define BOOST_NO_DEPENDENT_TYPES_IN_TEMPLATE_VALUE_PARAMETERS
 # define BOOST_NO_VOID_RETURNS
 # define BOOST_NO_EXCEPTION_STD_NAMESPACE
+
+# if BOOST_MSVC == 1202
+# define BOOST_NO_STD_TYPEINFO
+# endif
+
    // disable min/max macro defines on vc6:
    //
 #endif

Modified: trunk/boost/function/function_base.hpp
==============================================================================
--- trunk/boost/function/function_base.hpp (original)
+++ trunk/boost/function/function_base.hpp 2008-11-03 13:37:49 EST (Mon, 03 Nov 2008)
@@ -42,7 +42,7 @@
 #endif
 
 // Define BOOST_FUNCTION_STD_NS to the namespace that contains type_info.
-#ifdef BOOST_NO_EXCEPTION_STD_NAMESPACE
+#ifdef BOOST_NO_STD_TYPEINFO
 // Embedded VC++ does not have type_info in namespace std
 # define BOOST_FUNCTION_STD_NS
 #else


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