BOOST_NO_EXCEPTIONS support added.

[SVN r14835]
This commit is contained in:
Peter Dimov
2002-08-14 12:27:22 +00:00
parent e650c7ff16
commit a09c2e556f
4 changed files with 73 additions and 23 deletions

View File

@@ -23,7 +23,7 @@
#include <boost/assert.hpp>
#include <boost/checked_delete.hpp>
#include <boost/throw_exception.hpp>
#include <boost/detail/shared_count.hpp>
#include <memory> // for std::auto_ptr
@@ -90,6 +90,7 @@ private:
public:
typedef T element_type;
typedef T value_type;
shared_ptr(): px(0), pn()
{
@@ -146,7 +147,7 @@ public:
{
if (px == 0)
{
throw std::bad_cast();
boost::throw_exception(std::bad_cast());
}
}