[Boost-bugs] [Boost C++ Libraries] #1105: Add BOOST_NO_STD_TYPEINFO or inject ::type_info into std

Subject: [Boost-bugs] [Boost C++ Libraries] #1105: Add BOOST_NO_STD_TYPEINFO or inject ::type_info into std
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-07-21 18:23:19


#1105: Add BOOST_NO_STD_TYPEINFO or inject ::type_info into std
------------------------------+---------------------------------------------
 Reporter: pdimov | Owner: johnmaddock
     Type: Feature Requests | Status: new
Milestone: Boost 1.35.0 | Component: config
  Version: | Severity: Problem
 Keywords: |
------------------------------+---------------------------------------------
 {{{

 // MACRO: BOOST_NO_STD_TYPEINFO
 // TITLE: type_info not in namespace std
 // DESCRIPTION: The <typeinfo> header declares type_info in the global
 namespace instead of std

 #include <typeinfo>

 namespace boost_no_std_typeinfo
 {

 int test()
 {
    std::type_info * p = 0;
    return 0;
 }

 }
 }}}

 A better alternative to this macro may be to inject ::type_info into
 namespace std in suffix.hpp, but we still need a way to detect that the
 compiler needs the workaround. So it might be best to do both.
 Unfortunately this may interfere with config_test.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1105>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:56 UTC