Subject: [Boost-bugs] [Boost C++ Libraries] #10930: container std_fwd.hpp neglects custom std namespaces
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-01-14 10:31:25
#10930: container std_fwd.hpp neglects custom std namespaces
-------------------------+-------------------------------------------------
Reporter: dmorilha@⦠| Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.57.0
Severity: Problem | Keywords: std namespace libstdc++
| BOOST_CONTAINER_STD_NS_BEG
-------------------------+-------------------------------------------------
I've a special gcc with versioned libstdc++ std namespace (compiled with
--enable-symvers=gnu-versioned-namespace).
The file container/detail/std_fwd.hpp fails to detect that and assumes std
namespace to be "std" [1]. It generates problems during compilation.
My current workaround is to define the header macro in the compiler's
argument list and remove this file content out.
A different fix - possibly detecting the proper std namespace - would be
ideal here.
[1]:
{{{
//github.com/boostorg/container/blob/5d6123152cceb8f412f1f67829055232116bdb87/include/boost/container/detail/std_fwd.hpp#L29
#else
#define BOOST_CONTAINER_STD_NS_BEG namespace std{
#define BOOST_CONTAINER_STD_NS_END }
#endif
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10930> 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:50:17 UTC