Skip to content

Commit

Permalink
Merge bitcoin#10965: Replace deprecated throw() with noexcept specifi…
Browse files Browse the repository at this point in the history
…er (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
  • Loading branch information
MarcoFalke authored and PastaPastaPasta committed Sep 19, 2019
1 parent 3a88434 commit e59b744
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/support/allocators/secure.h
Expand Up @@ -27,13 +27,13 @@ struct secure_allocator : public std::allocator<T> {
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 <typename U>
secure_allocator(const secure_allocator<U>& a) throw() : base(a)
secure_allocator(const secure_allocator<U>& a) noexcept : base(a)
{
}
~secure_allocator() throw() {}
~secure_allocator() noexcept {}
template <typename _Other>
struct rebind {
typedef secure_allocator<_Other> other;
Expand Down
8 changes: 4 additions & 4 deletions src/support/allocators/zeroafterfree.h
Expand Up @@ -22,13 +22,13 @@ struct zero_after_free_allocator : public std::allocator<T> {
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 <typename U>
zero_after_free_allocator(const zero_after_free_allocator<U>& a) throw() : base(a)
zero_after_free_allocator(const zero_after_free_allocator<U>& a) noexcept : base(a)
{
}
~zero_after_free_allocator() throw() {}
~zero_after_free_allocator() noexcept {}
template <typename _Other>
struct rebind {
typedef zero_after_free_allocator<_Other> other;
Expand Down

0 comments on commit e59b744

Please sign in to comment.