diff --git a/STL_Extension/include/CGAL/In_place_list.h b/STL_Extension/include/CGAL/In_place_list.h index adc2cd24307..304153ed95e 100644 --- a/STL_Extension/include/CGAL/In_place_list.h +++ b/STL_Extension/include/CGAL/In_place_list.h @@ -215,8 +215,25 @@ public: typedef CGALi::In_place_list_iterator iterator; typedef CGALi::In_place_list_const_iterator const_iterator; +#if defined(__SUNPRO_CC) && defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) + typedef std::reverse_iterator< iterator, + typename iterator::iterator_category, + typename iterator::value_type, + typename iterator::reference, + typename iterator::pointer, + typename iterator::difference_type + > reverse_iterator; + typedef std::reverse_iterator< const_iterator, + typename const_iterator::iterator_category, + typename const_iterator::value_type, + typename const_iterator::reference, + typename const_iterator::pointer, + typename const_iterator::difference_type + > const_reverse_iterator; +#else typedef std::reverse_iterator< iterator > reverse_iterator; typedef std::reverse_iterator< const_iterator > const_reverse_iterator; +#endif // defined(__SUNPRO_CC) && defined(_RWSTD_NO_CLASS_PARTIAL_SPEC) typedef In_place_list Self;