From 9443fe322c7af93f03e39edd626e8305b8398edd Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Wed, 6 Apr 2005 09:09:36 +0000 Subject: 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 --- boost/boost-1.30.2.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 boost/boost-1.30.2.patch (limited to 'boost') diff --git a/boost/boost-1.30.2.patch b/boost/boost-1.30.2.patch new file mode 100644 index 000000000000..a1d2a0084c27 --- /dev/null +++ b/boost/boost-1.30.2.patch @@ -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 -- cgit