diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 6663cde..f2b4689 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -435,9 +435,10 @@ template std::basic_ostream & 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(void *) +// apparently EDG 2.38 also doesn't accept it template D * get_deleter(shared_ptr const & p) {