summaryrefslogtreecommitdiff
path: root/boost
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-04-06 09:09:36 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-04-06 09:09:36 +0000
commit9443fe322c7af93f03e39edd626e8305b8398edd (patch)
treee7619d4a00239e8a975cf7b32d6348fbe5127631 /boost
parent2084ac50c3486c9c0388216f9283d66359654b44 (diff)
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
Diffstat (limited to 'boost')
-rw-r--r--boost/boost-1.30.2.patch19
1 files changed, 19 insertions, 0 deletions
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