diff options
Diffstat (limited to 'cutl/shared-ptr/base.ixx')
-rw-r--r-- | cutl/shared-ptr/base.ixx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cutl/shared-ptr/base.ixx b/cutl/shared-ptr/base.ixx index 14dd0ac..3dd982b 100644 --- a/cutl/shared-ptr/base.ixx +++ b/cutl/shared-ptr/base.ixx @@ -59,19 +59,22 @@ namespace cutl } inline void* shared_base:: - operator new (std::size_t n, share) throw (std::bad_alloc) + operator new (std::size_t n, share) +#ifndef LIBCUTL_CXX11 + throw (std::bad_alloc) +#endif { return ::operator new (n); } inline void shared_base:: - operator delete (void* p, share) throw () + operator delete (void* p, share) LIBCUTL_NOTHROW_NOEXCEPT { ::operator delete (p); } inline void shared_base:: - operator delete (void* p) throw () + operator delete (void* p) LIBCUTL_NOTHROW_NOEXCEPT { ::operator delete (p); } |