workaround for sunpro old stl, copied from vector.h

This commit is contained in:
Marc Glisse 2006-02-22 16:36:03 +00:00
parent 068d513777
commit 936522e422
1 changed files with 19 additions and 2 deletions

View File

@ -473,8 +473,25 @@ public:
friend class const_iterator;
// Define the reverse iterators:
typedef std::reverse_iterator<iterator> reverse_iterator;
typedef std::reverse_iterator<const_iterator> const_reverse_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)
protected: