Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75600 - trunk/boost/detail
From: dnljms_at_[hidden]
Date: 2011-11-21 18:21:32


Author: danieljames
Date: 2011-11-21 18:21:32 EST (Mon, 21 Nov 2011)
New Revision: 75600
URL: http://svn.boost.org/trac/boost/changeset/75600

Log:
Detail: Fix `BOOST_CONTAINER_FWD_COMPLEX_STRUCT`. Refs #6139.

My last change was wrong, it isn't struct for Dinkumware. In GCC's
standard library it's declared as a class, but later defined as a
struct. This is so far untested as I'm building the latest trunk version
of clang (the warning doesn't show for the current clang release).
Text files modified:
   trunk/boost/detail/container_fwd.hpp | 5 ++++-
   1 files changed, 4 insertions(+), 1 deletions(-)

Modified: trunk/boost/detail/container_fwd.hpp
==============================================================================
--- trunk/boost/detail/container_fwd.hpp (original)
+++ trunk/boost/detail/container_fwd.hpp 2011-11-21 18:21:32 EST (Mon, 21 Nov 2011)
@@ -42,6 +42,10 @@
         || defined(_GLIBCXX_PARALLEL) \
         || defined(_GLIBCXX_PROFILE)
 # define BOOST_DETAIL_NO_CONTAINER_FWD
+# else
+# if defined(__GLIBCXX__) && __GLIBCXX__ >= 20040530
+# define BOOST_CONTAINER_FWD_COMPLEX_STRUCT
+# endif
 # endif
 # elif defined(__STL_CONFIG_H)
      // generic SGI STL
@@ -63,7 +67,6 @@
 # elif (defined(_YVALS) && !defined(__IBMCPP__)) || defined(_CPPLIB_VER)
      // Dinkumware Library (this has to appear after any possible replacement
      // libraries)
-# define BOOST_CONTAINER_FWD_COMPLEX_STRUCT
 # else
 # define BOOST_DETAIL_NO_CONTAINER_FWD
 # endif


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