Skip to content

Commit 9862550

Browse files
Use the noexcept specifier (C++11) instead of deprecated throw()
1 parent 42307c4 commit 9862550

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)