From 52587aaa055257c2448128149a9e67e95aaa6ebe Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 2 Apr 2005 12:00:14 +0000 Subject: [PATCH] Fixed shared_ptr_delete_fail failure on g++ 3.3 and below [SVN r27930] --- include/boost/shared_ptr.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/boost/shared_ptr.hpp b/include/boost/shared_ptr.hpp index 800e539..8d6196c 100644 --- a/include/boost/shared_ptr.hpp +++ b/include/boost/shared_ptr.hpp @@ -268,7 +268,10 @@ public: return px != 0; } -#elif defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, BOOST_TESTED_AT(0x3003)) +#elif \ + ( defined(__MWERKS__) && BOOST_WORKAROUND(__MWERKS__, < 0x3200) ) || \ + ( defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__ < 304) ) + typedef T * (this_type::*unspecified_bool_type)() const; operator unspecified_bool_type() const // never throws