Skip to content

Commit d016b7c

Browse files
authored
Default empty destructors
downstream: boostorg/asio#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. chriskohlhoff#792 (comment)
1 parent ed5db1b commit d016b7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

asio/include/asio/ip/bad_address_cast.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class bad_address_cast :
4646
}
4747

4848
/// Destructor.
49-
virtual ~bad_address_cast() noexcept {}
49+
~bad_address_cast() = default;
5050

5151
/// Get the message associated with the exception.
5252
virtual const char* what() const noexcept

0 commit comments

Comments
 (0)