From 6ca1c8ee64bf7268d194eb15e72d3024a335039d Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sat, 19 Sep 2009 08:20:12 +0200 Subject: Add root exception class Derive all other exceptions from it. --- cutl/shared-ptr/base.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cutl/shared-ptr/base.hxx') 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 #include // std::size_t -#include // std::exception + +#include 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 inline std::size_t - ref_count (X const*); + ref_count (X const*); } #include -- cgit v1.1