From 609cf3c49f8df3647238b38de1f2cef8beebcfe7 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Mon, 21 Nov 2011 23:21:32 +0000 Subject: [PATCH] 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). [SVN r75600] --- include/boost/detail/container_fwd.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/detail/container_fwd.hpp b/include/boost/detail/container_fwd.hpp index 01820ae..659e428 100644 --- a/include/boost/detail/container_fwd.hpp +++ b/include/boost/detail/container_fwd.hpp @@ -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