From 23dffd30e73f37cd0a4e99ed95ea3d5e614a204e Mon Sep 17 00:00:00 2001 From: Michael Hoffmann Date: Thu, 27 Sep 2001 06:56:27 +0000 Subject: [PATCH] Fixed std::iterator bug for gcc-2. --- Packages/STL_Extension/include/CGAL/iterator.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Packages/STL_Extension/include/CGAL/iterator.h b/Packages/STL_Extension/include/CGAL/iterator.h index 5ed00370fcc..45514cdc8a2 100644 --- a/Packages/STL_Extension/include/CGAL/iterator.h +++ b/Packages/STL_Extension/include/CGAL/iterator.h @@ -42,7 +42,11 @@ CGAL_BEGIN_NAMESPACE // +----------------------------------------------------------------+ struct Emptyset_iterator +#if defined(__GNUC__) && (__GNUC__ < 3) + : public std::output_iterator +#else : public std::iterator< std::output_iterator_tag, void, void, void*, void > +#endif // defined(__GNUC__) && (__GNUC__ < 3) { Emptyset_iterator() {} Emptyset_iterator(const Emptyset_iterator&) {} @@ -65,7 +69,11 @@ struct Emptyset_iterator template < class T > class Oneset_iterator +#if defined(__GNUC__) && (__GNUC__ < 3) + : public std::output_iterator +#else : public std::iterator< std::output_iterator_tag, void, void, void*, void > +#endif // defined(__GNUC__) && (__GNUC__ < 3) { T& t; public: