mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
boost.diff
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@1601 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
5e8b74091e
commit
00b4a7ba8a
@ -63,6 +63,10 @@
|
||||
#include <boost/utility.hpp> // for boost::noncopyable
|
||||
#include <functional> // for std::less
|
||||
|
||||
#ifdef LYX_NO_EXCEPTIONS
|
||||
#include <assert.h>
|
||||
#endif
|
||||
|
||||
namespace boost {
|
||||
|
||||
// scoped_ptr --------------------------------------------------------------//
|
||||
@ -142,6 +146,7 @@ template<typename T> class shared_ptr {
|
||||
catch (...) { delete p; throw; }
|
||||
#else
|
||||
pn = new long(1);
|
||||
assert(pn != 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -221,6 +226,7 @@ template<typename T> class shared_ptr {
|
||||
} // catch
|
||||
#else
|
||||
pn = new long;
|
||||
assert(pn != 0);
|
||||
#endif
|
||||
} // allocate new reference counter
|
||||
*pn = 1;
|
||||
@ -298,6 +304,7 @@ template<typename T> class shared_array {
|
||||
catch (...) { delete [] p; throw; }
|
||||
#else
|
||||
pn = new long(1);
|
||||
assert(pn != 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -328,6 +335,7 @@ template<typename T> class shared_array {
|
||||
} // catch
|
||||
#else
|
||||
pn = new long;
|
||||
assert(pn != 0);
|
||||
#endif
|
||||
} // allocate new reference counter
|
||||
*pn = 1;
|
||||
|
Loading…
Reference in New Issue
Block a user