|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r61799 - trunk/boost/config/compiler
From: nielsdekker_at_[hidden]
Date: 2010-05-05 16:46:41
Author: niels_dekker
Date: 2010-05-05 16:46:41 EDT (Wed, 05 May 2010)
New Revision: 61799
URL: http://svn.boost.org/trac/boost/changeset/61799
Log:
Added BOOST_NO_COMPLETE_VALUE_INITIALIZATION to Microsoft Visual C++ (trunk), see #4080.
Text files modified:
trunk/boost/config/compiler/visualc.hpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
Modified: trunk/boost/config/compiler/visualc.hpp
==============================================================================
--- trunk/boost/config/compiler/visualc.hpp (original)
+++ trunk/boost/config/compiler/visualc.hpp 2010-05-05 16:46:41 EDT (Wed, 05 May 2010)
@@ -99,6 +99,18 @@
# define BOOST_NO_ADL_BARRIER
#endif
+// MSVC has not yet completely implemented value-initialization, as
+// is reported:
+// "VC++ does not value-initialize members of derived classes without
+// user-declared constructor", reported in 2009 by Sylvester Hesp:
+// https://connect.microsoft.com/VisualStudio/feedback/details/484295
+// "Value-initialization in new-expression", reported in 2005 by
+// Pavel Kuznetsov (MetaCommunications Engineering):
+// https://connect.microsoft.com/VisualStudio/feedback/details/100744
+// See also: http://www.boost.org/libs/utility/value_init.htm#compiler_issues
+// (Niels Dekker, LKEB, May 2010)
+#define BOOST_NO_COMPLETE_VALUE_INITIALIZATION
+
#if _MSC_VER <= 1500 || !defined(BOOST_STRICT_CONFIG) // 1500 == VC++ 9.0
# define BOOST_NO_INITIALIZER_LISTS
#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