--- weak_ptr1.hpp Sun Nov 25 12:07:20 2007 +++ weak_ptr.hpp Thu Aug 7 17:48:13 2008 @@ -14,6 +14,7 @@ // #include // boost.TR1 include order fix +#include #include #include @@ -101,16 +102,17 @@ return shared_ptr(); } - try + BOOST_TRY { return shared_ptr(*this); } - catch(bad_weak_ptr const &) + BOOST_CATCH(bad_weak_ptr const &) { // Q: how can we get here? // A: another thread may have invalidated r after the use_count test above. return shared_ptr(); } + BOOST_CATCH_END #else