From 24ce9a7f1c2584e63669cbcbb8e279526c310a98 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Mon, 31 Jul 2017 19:44:01 +0200 Subject: [PATCH] Use the noexcept specifier (C++11) instead of deprecated throw() --- src/support/allocators/secure.h | 8 ++++---- src/support/allocators/zeroafterfree.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/support/allocators/secure.h b/src/support/allocators/secure.h index 274a8661ad54d..c6d52aa4d4718 100644 --- a/src/support/allocators/secure.h +++ b/src/support/allocators/secure.h @@ -27,13 +27,13 @@ struct secure_allocator : public std::allocator { typedef typename base::reference reference; typedef typename base::const_reference const_reference; typedef typename base::value_type value_type; - secure_allocator() throw() {} - secure_allocator(const secure_allocator& a) throw() : base(a) {} + secure_allocator() noexcept {} + secure_allocator(const secure_allocator& a) noexcept : base(a) {} template - secure_allocator(const secure_allocator& a) throw() : base(a) + secure_allocator(const secure_allocator& a) noexcept : base(a) { } - ~secure_allocator() throw() {} + ~secure_allocator() noexcept {} template struct rebind { typedef secure_allocator<_Other> other; diff --git a/src/support/allocators/zeroafterfree.h b/src/support/allocators/zeroafterfree.h index 12aafe0a18309..0e69f9e02c2f1 100644 --- a/src/support/allocators/zeroafterfree.h +++ b/src/support/allocators/zeroafterfree.h @@ -22,13 +22,13 @@ struct zero_after_free_allocator : public std::allocator { typedef typename base::reference reference; typedef typename base::const_reference const_reference; typedef typename base::value_type value_type; - zero_after_free_allocator() throw() {} - zero_after_free_allocator(const zero_after_free_allocator& a) throw() : base(a) {} + zero_after_free_allocator() noexcept {} + zero_after_free_allocator(const zero_after_free_allocator& a) noexcept : base(a) {} template - zero_after_free_allocator(const zero_after_free_allocator& a) throw() : base(a) + zero_after_free_allocator(const zero_after_free_allocator& a) noexcept : base(a) { } - ~zero_after_free_allocator() throw() {} + ~zero_after_free_allocator() noexcept {} template struct rebind { typedef zero_after_free_allocator<_Other> other;