From 21f295dc3d1a1cd9b0869452ef262947d5e9c828 Mon Sep 17 00:00:00 2001 From: Marc Glisse Date: Sun, 22 Apr 2007 15:23:03 +0000 Subject: [PATCH] I don't understand why that code was in namespace CGAL. This patch lets Circulators compile with the old STL. I'll see if it breaks anything else, but I don't think it will. --- Installation/include/CGAL/Sun_fixes.h | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Installation/include/CGAL/Sun_fixes.h b/Installation/include/CGAL/Sun_fixes.h index 56910d96cec..4ffc8dd665d 100644 --- a/Installation/include/CGAL/Sun_fixes.h +++ b/Installation/include/CGAL/Sun_fixes.h @@ -108,10 +108,6 @@ namespace std { return result; } -} // namespace std - -namespace CGAL { - template < class T > inline typename T::value_type* __value_type (const T&) @@ -130,21 +126,7 @@ namespace CGAL { return tmp; } - template < class T > - inline T* __value_type(T*) - { return (T*)(0); } - - template - inline std::ptrdiff_t* - __distance_type (T*) - { return (std::ptrdiff_t*)(0); } - - template - inline std::random_access_iterator_tag - __iterator_category (T*) - { return std::random_access_iterator_tag(); } - -} // namespace CGAL +} // namespace std #endif // CGAL_CFG_SUNPRO_RWSTD