From d016b7c4b2a295e41a49f8f7907edf4864a4f8ab Mon Sep 17 00:00:00 2001 From: Ed Catmur Date: Thu, 21 Dec 2023 15:51:34 -0600 Subject: [PATCH] Default empty destructors downstream: https://github.com/boostorg/asio/pull/407 The compiler-generated copy constructor and copy assignment operator are deprecated since C++11 on classes with user-declared destructors. This change allows clean compilation with the -Wdeprecated-copy-dtor/-Wdeprecated-copy-with-user-provided-dtor flag. cf. https://github.com/chriskohlhoff/asio/issues/792#issuecomment-1565179044 --- asio/include/asio/ip/bad_address_cast.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/asio/include/asio/ip/bad_address_cast.hpp b/asio/include/asio/ip/bad_address_cast.hpp index e45ccbc021..34a623dd0c 100644 --- a/asio/include/asio/ip/bad_address_cast.hpp +++ b/asio/include/asio/ip/bad_address_cast.hpp @@ -46,7 +46,7 @@ class bad_address_cast : } /// Destructor. - virtual ~bad_address_cast() noexcept {} + ~bad_address_cast() = default; /// Get the message associated with the exception. virtual const char* what() const noexcept