diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-14 15:24:14 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-11-14 15:24:14 +0200 |
commit | 44fde85b2496750b78939247d1d19a67c5b3dc71 (patch) | |
tree | cb7f87c14037727ddc89bb7499457b5e3207ad98 /cutl/shared-ptr/base.ixx | |
parent | 7945c1771bbb57125b3e3343fa84bfc314e0f4d4 (diff) |
C++11-compatibility fixes and improvements
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); } |