From 6edbd05702bedeb0a06b0f2d3770c3dfca08f358 Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Tue, 11 Sep 2001 11:50:35 +0000 Subject: [PATCH] Added iterator_traits fake for sunpro. --- Packages/Configuration/include/CGAL/config.h | 45 +++++++++++++++++--- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/Packages/Configuration/include/CGAL/config.h b/Packages/Configuration/include/CGAL/config.h index 17718c51083..61748576670 100644 --- a/Packages/Configuration/include/CGAL/config.h +++ b/Packages/Configuration/include/CGAL/config.h @@ -8,10 +8,12 @@ // // ---------------------------------------------------------------------- // -// release : $CGAL_Revision: CGAL-2.0-I-1 $ -// release_date : $CGAL_Date: 1999/02/09 $ +// release : $CGAL_Revision: CGAL-2.4-I-7 $ +// release_date : $CGAL_Date: 2001/09/07 $ // // file : include/CGAL/config.h +// package : Configuration (2.11) +// maintainer : Geert-Jan Giezeman // source : // revision : 1.11 // revision_date : 30 Mar 1998 @@ -25,8 +27,8 @@ #ifndef CGAL_CONFIG_H #define CGAL_CONFIG_H -#define CGAL_VERSION 1.1-I-01 -#define CGAL_VERSION_NR 1001100001 +#define CGAL_VERSION 2.4-I-7 +#define CGAL_VERSION_NR 1002004007 #define CGAL_CFG_NO_ADVANCED_KERNEL 1 @@ -122,7 +124,6 @@ // select old or new style headers //----------------------------------------------------------------------// - #ifndef CGAL_USE_NEWSTYLE_HEADERS # ifndef CGAL_CFG_NO_STANDARD_HEADERS # ifndef CGAL_NO_NEWSTYLE_HEADERS @@ -131,5 +132,39 @@ # endif // ! CGAL_CFG_NO_STANDARD_HEADERS #endif // ! CGAL_USE_NEWSTYLE_HEADERS +//----------------------------------------------------------------------// +// fake iterator_traits for sunpro +//----------------------------------------------------------------------// + +#if defined(__sun) && defined(__SUNPRO_CC) +#include +namespace std { + template struct iterator_traits + { + typedef typename Iterator::value_type value_type; + typedef typename Iterator::difference_type difference_type; + typedef typename Iterator::pointer pointer; + typedef typename Iterator::reference reference; + typedef typename Iterator::iterator_category iterator_category; + }; + template struct iterator_traits + { + typedef T value_type; + typedef ptrdiff_t difference_type; + typedef T* pointer; + typedef T& reference; + typedef random_access_iterator_tag iterator_category; + }; + template struct iterator_traits + { + typedef T value_type; + typedef ptrdiff_t difference_type; + typedef const T* pointer; + typedef const T& reference; + typedef random_access_iterator_tag iterator_category; + }; +} +#endif // if defined(__sun) && defined(__SUNPRO_CC) + #endif // CGAL_CONFIG_H