Skip to content

Commit 655970d

Browse files
author
MarcoFalke
committed
Merge #10965: Replace deprecated throw() with noexcept specifier (C++11)
9862550 Use the noexcept specifier (C++11) instead of deprecated throw() (practicalswift) Pull request description: Use the `noexcept` specifier (C++11) instead of deprecated `throw()`. Tree-SHA512: cf9b6b18f61f2f59bbeceb2e43b5cd07a60f5e569c8def05c410cb72326d597c80cb731059969ef89fa5fddaae1242225886e6109fcb535c4ad62d56ebcdf1ea
2 parents b6a4891 + 9862550 commit 655970d

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/support/allocators/secure.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ struct secure_allocator : public std::allocator<T> {
2626
typedef typename base::reference reference;
2727
typedef typename base::const_reference const_reference;
2828
typedef typename base::value_type value_type;
29-
secure_allocator() throw() {}
30-
secure_allocator(const secure_allocator& a) throw() : base(a) {}
29+
secure_allocator() noexcept {}
30+
secure_allocator(const secure_allocator& a) noexcept : base(a) {}
3131
template <typename U>
32-
secure_allocator(const secure_allocator<U>& a) throw() : base(a)
32+
secure_allocator(const secure_allocator<U>& a) noexcept : base(a)
3333
{
3434
}
35-
~secure_allocator() throw() {}
35+
~secure_allocator() noexcept {}
3636
template <typename _Other>
3737
struct rebind {
3838
typedef secure_allocator<_Other> other;

src/support/allocators/zeroafterfree.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ struct zero_after_free_allocator : public std::allocator<T> {
2222
typedef typename base::reference reference;
2323
typedef typename base::const_reference const_reference;
2424
typedef typename base::value_type value_type;
25-
zero_after_free_allocator() throw() {}
26-
zero_after_free_allocator(const zero_after_free_allocator& a) throw() : base(a) {}
25+
zero_after_free_allocator() noexcept {}
26+
zero_after_free_allocator(const zero_after_free_allocator& a) noexcept : base(a) {}
2727
template <typename U>
28-
zero_after_free_allocator(const zero_after_free_allocator<U>& a) throw() : base(a)
28+
zero_after_free_allocator(const zero_after_free_allocator<U>& a) noexcept : base(a)
2929
{
3030
}
31-
~zero_after_free_allocator() throw() {}
31+
~zero_after_free_allocator() noexcept {}
3232
template <typename _Other>
3333
struct rebind {
3434
typedef zero_after_free_allocator<_Other> other;

0 commit comments

Comments
 (0)