aboutsummaryrefslogtreecommitdiff
path: root/cutl/shared-ptr/base.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-19 08:20:12 +0200
commit6ca1c8ee64bf7268d194eb15e72d3024a335039d (patch)
tree8876f51d9392f35c27eca83126fb9732e01bd916 /cutl/shared-ptr/base.hxx
parentf0fb6aeab118255266370121db79ab2a2fed88ad (diff)
Add root exception class
Derive all other exceptions from it.
Diffstat (limited to 'cutl/shared-ptr/base.hxx')
-rw-r--r--cutl/shared-ptr/base.hxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/cutl/shared-ptr/base.hxx b/cutl/shared-ptr/base.hxx
index bb297cb..999c6d0 100644
--- a/cutl/shared-ptr/base.hxx
+++ b/cutl/shared-ptr/base.hxx
@@ -8,7 +8,8 @@
#include <new>
#include <cstddef> // std::size_t
-#include <exception> // std::exception
+
+#include <cutl/exception.hxx>
namespace cutl
{
@@ -36,7 +37,7 @@ operator delete (void*, cutl::share) throw ();
namespace cutl
{
- struct not_shared: std::exception
+ struct not_shared: exception
{
virtual char const*
what () const throw ();
@@ -81,7 +82,7 @@ namespace cutl
template <typename X>
inline std::size_t
- ref_count (X const*);
+ ref_count (X const*);
}
#include <cutl/shared-ptr/base.ixx>