From e3f4792e01e731a749c17e27d1bc2b8214f02a03 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 30 Jul 2003 14:47:59 +0000 Subject: [PATCH] Added more workarounds for 5.5 --- .../Configuration/include/CGAL/Sun_fixes.h | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/Packages/Configuration/include/CGAL/Sun_fixes.h b/Packages/Configuration/include/CGAL/Sun_fixes.h index 5fe5d1ed1a8..c9ecab3d41e 100644 --- a/Packages/Configuration/include/CGAL/Sun_fixes.h +++ b/Packages/Configuration/include/CGAL/Sun_fixes.h @@ -88,7 +88,7 @@ namespace std { return n; } -#if ( __SUNPRO_CC < 0x550) + template < class T > inline typename T::value_type* __value_type (const T&) @@ -106,6 +106,27 @@ namespace std { typename T::iterator_category tmp; return tmp; } + + +#if ( __SUNPRO_CC == 0x550) + + template < class T > + inline T* __value_type(T*) + { return _RWSTD_STATIC_CAST(T*,0); } + + template + inline ptrdiff_t* + __distance_type (T*) + { + return _RWSTD_STATIC_CAST(ptrdiff_t*,0); + } + + template + inline random_access_iterator_tag + __iterator_category (T*) + { + return random_access_iterator_tag(); + } #endif } // namespace std