From 5e1d3de510e83f3ded4618d6716a9ef79bb9ddab Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Mon, 3 May 2010 17:43:56 +0000 Subject: [PATCH] Added BOOST_NO_COMPLETE_VALUE_INITIALIZATION to Sun <= 5.10 (trunk), see #4080 [SVN r61744] --- include/boost/config/compiler/sunpro_cc.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/config/compiler/sunpro_cc.hpp b/include/boost/config/compiler/sunpro_cc.hpp index f5184887..a636aa1e 100644 --- a/include/boost/config/compiler/sunpro_cc.hpp +++ b/include/boost/config/compiler/sunpro_cc.hpp @@ -69,6 +69,16 @@ # define BOOST_NO_IS_ABSTRACT # endif +# if (__SUNPRO_CC <= 0x5100) + // Sun 5.10 may not correctly value-initialize objects of + // some user defined types, as was reported in April 2010 + // (CR 6947016), and confirmed by Steve Clamage. + // (Niels Dekker, LKEB, May 2010). +# define BOOST_NO_COMPLETE_VALUE_INITIALIZATION +# endif + + + // // Issues that effect all known versions: //