Fixed shared_ptr_delete_fail failure on g++ 3.3 and below

[SVN r27930]
This commit is contained in:
Peter Dimov
2005-04-02 12:00:14 +00:00
parent 0669d41076
commit 52587aaa05

View File

@ -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