added fix for SUNPRO

This commit is contained in:
Susan Hert 2001-09-13 08:37:15 +00:00
parent 32b2870dec
commit 95dc0ea87d
1 changed files with 10 additions and 0 deletions

View File

@ -33,6 +33,16 @@ ch_value_type(const Iterator&)
typedef typename std::iterator_traits<Iterator>::value_type v_type;
return static_cast<v_type*>(0);
}
#if defined(__sun) && (__SUNPRO_CC == 0x530)
template <class Iterator>
inline
typename std::iterator_traits<Iterator*>::value_type*
ch_value_type(Iterator*)
{
typedef typename std::iterator_traits<Iterator*>::value_type v_type;
return static_cast<v_type*>(0);
}
#endif // defined(__sun) && (__SUNPRO_CC == 0x530)
#else
#ifdef _MSC_VER
template<class Iterator>