From f3dab08d7b34316dc7e5f642c0411ca89bfbb6b1 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 6 Aug 2003 07:33:38 +0000 Subject: [PATCH] Added changes for patched 5.4 --- .../Configuration/include/CGAL/Sun_fixes.h | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/Packages/Configuration/include/CGAL/Sun_fixes.h b/Packages/Configuration/include/CGAL/Sun_fixes.h index c9ecab3d41e..719d1af31a7 100644 --- a/Packages/Configuration/include/CGAL/Sun_fixes.h +++ b/Packages/Configuration/include/CGAL/Sun_fixes.h @@ -88,6 +88,9 @@ namespace std { return n; } +} // namespace std + +namespace CGAL { template < class T > inline typename T::value_type* @@ -108,27 +111,29 @@ namespace std { } -#if ( __SUNPRO_CC == 0x550) + //#if ( __SUNPRO_CC == 0x550) template < class T > inline T* __value_type(T*) - { return _RWSTD_STATIC_CAST(T*,0); } + { + return (T*)(0); + } template - inline ptrdiff_t* + inline std::ptrdiff_t* __distance_type (T*) { - return _RWSTD_STATIC_CAST(ptrdiff_t*,0); + return (std::ptrdiff_t*)(0); } template inline random_access_iterator_tag __iterator_category (T*) { - return random_access_iterator_tag(); + return std::random_access_iterator_tag(); } -#endif + // #endif -} // namespace std +} // namespace CGAL #endif // CGAL_SUN_FIXES_H