From 00b4a7ba8a56adb69e2b45e6188aba2f28b47ab6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lars=20Gullik=20Bj=C3=B8nnes?= Date: Thu, 22 Feb 2001 14:37:39 +0000 Subject: [PATCH] boost.diff git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1601 a592a061-630c-0410-9148-cb99ea01b6c8 --- boost/boost/smart_ptr.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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;