From 2d4eb9240136e47474ce492ec524af96beabffb6 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Wed, 16 Jul 2003 11:54:49 +0000 Subject: [PATCH] get_deleter fix for EDG 2.38 [SVN r19148] --- include/boost/shared_ptr.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) {