From e5ab506c4c28ed3b07c6dab9b1d98ea8052d80eb Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Tue, 22 Jun 2010 21:49:44 +0000 Subject: [PATCH] Removed BOOST_NO_COMPLETE_VALUE_INITIALIZATION from Apple build of GCC (trunk), based on test results and feedback from Chris Jefferson. see #4080. [SVN r63249] --- include/boost/config/compiler/gcc.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/config/compiler/gcc.hpp b/include/boost/config/compiler/gcc.hpp index 3ba45ddd..bcad1533 100644 --- a/include/boost/config/compiler/gcc.hpp +++ b/include/boost/config/compiler/gcc.hpp @@ -80,7 +80,12 @@ // reported by Michael Elizabeth Chastain in 2007, // http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33916 (fixed for GCC 4.2.4) // See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues -#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION +// Note that these issues also appear to be fixed in Apple's g++, according to +// test results from the minion-clang/darwin-4.2.1 toolset, GNU 4.2.1 Apple +// build 5659, ran by Christopher Jefferson. (Niels Dekker, LKEB, June 2010.) +# if !defined(__APPLE_CC__) || (__APPLE_CC__ < 5659) +# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION +# endif #endif #if !defined(__EXCEPTIONS) && !defined(BOOST_NO_EXCEPTIONS)