From 8e7b64682b69662cd08d2c7dda60db7dff67a5a8 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sat, 25 Feb 2006 23:34:11 +0000 Subject: [PATCH] sunpro: don't apply rwstd fixes if we are using an other stl. --- Configuration/include/CGAL/Sun_fixes.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Configuration/include/CGAL/Sun_fixes.h b/Configuration/include/CGAL/Sun_fixes.h index 7e1b6bbc164..b2a5587acb5 100644 --- a/Configuration/include/CGAL/Sun_fixes.h +++ b/Configuration/include/CGAL/Sun_fixes.h @@ -24,6 +24,8 @@ #ifndef CGAL_SUN_FIXES_H #define CGAL_SUN_FIXES_H 1 +#ifdef CGAL_CFG_SUNPRO_RWSTD + //----------------------------------------------------------------------// // if member templates for stdlib are not enabled // //----------------------------------------------------------------------// @@ -31,7 +33,7 @@ /* For reasons of binary backward compatibility, Sun CC does not enable -member templates of the STL classes. +member templates of the STL classes in the Rogue Wave STL. An #undef creates runtime errors for some packages, so it is not a viable solution. Instead, we have to offer workarounds in CGAL @@ -130,4 +132,6 @@ namespace CGAL { } // namespace CGAL +#endif // CGAL_CFG_SUNPRO_RWSTD + #endif // CGAL_SUN_FIXES_H