INTEGRATION: CWS ccpatch (1.1.2); FILE ADDED

2005/04/01 13:52:25 dbo 1.1.2.1: #120732# workaround sunpro CC opt bug for safe-bool idiom
This commit is contained in:
Jens-Heiner Rechtien 2005-04-06 09:09:36 +00:00
parent 2084ac50c3
commit 9443fe322c

19
boost/boost-1.30.2.patch Normal file
View file

@ -0,0 +1,19 @@
*** misc/boost-1.30.2/boost/function/function_template.hpp 2003-02-07 15:03:36.000000000 +0100
--- misc/build/boost-1.30.2/boost/function/function_template.hpp 2005-04-01 15:40:45.820816441 +0200
***************
*** 395,401 ****
invoker = 0;
}
! #if (defined __SUNPRO_CC) && (__SUNPRO_CC <= 0x530) && !(defined BOOST_NO_COMPILER_CONFIG)
// Sun C++ 5.3 can't handle the safe_bool idiom, so don't use it
operator bool () const { return !this->empty(); }
#else
--- 395,401 ----
invoker = 0;
}
! #if (defined __SUNPRO_CC) // workaround opt bug when compiling with -xO3
// Sun C++ 5.3 can't handle the safe_bool idiom, so don't use it
operator bool () const { return !this->empty(); }
#else