get_deleter fix for EDG 2.38

[SVN r19148]
This commit is contained in:
Peter Dimov
2003-07-16 11:54:49 +00:00
parent 192970b3b8
commit 2d4eb92401

View File

@ -435,9 +435,10 @@ template<class E, class T, class Y> std::basic_ostream<E, T> & operator<< (std::
// get_deleter (experimental)
#if defined(__GNUC__) && (__GNUC__ < 3)
#if (defined(__GNUC__) && (__GNUC__ < 3)) || (defined(__EDG_VERSION__) && (__EDG_VERSION__ <= 238))
// g++ 2.9x doesn't allow static_cast<X const *>(void *)
// apparently EDG 2.38 also doesn't accept it
template<class D, class T> D * get_deleter(shared_ptr<T> const & p)
{