From: Lars Gullik Bjønnes Date: Thu, 22 Feb 2001 14:37:39 +0000 (+0000) Subject: boost.diff X-Git-Tag: 1.6.10~21574 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=00b4a7ba8a56adb69e2b45e6188aba2f28b47ab6;p=features.git boost.diff git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1601 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/boost/boost/smart_ptr.hpp b/boost/boost/smart_ptr.hpp index 0f6d559d59..6b03d49f35 100644 --- a/boost/boost/smart_ptr.hpp +++ b/boost/boost/smart_ptr.hpp @@ -63,6 +63,10 @@ #include // for boost::noncopyable #include // for std::less +#ifdef LYX_NO_EXCEPTIONS +#include +#endif + namespace boost { // scoped_ptr --------------------------------------------------------------// @@ -142,6 +146,7 @@ template class shared_ptr { catch (...) { delete p; throw; } #else pn = new long(1); + assert(pn != 0); #endif } @@ -221,6 +226,7 @@ template class shared_ptr { } // catch #else pn = new long; + assert(pn != 0); #endif } // allocate new reference counter *pn = 1; @@ -298,6 +304,7 @@ template class shared_array { catch (...) { delete [] p; throw; } #else pn = new long(1); + assert(pn != 0); #endif } @@ -328,6 +335,7 @@ template class shared_array { } // catch #else pn = new long; + assert(pn != 0); #endif } // allocate new reference counter *pn = 1;