chriskohlhoff / asio

Asio C++ Library
http://think-async.com/Asio
4.88k stars 1.21k forks source link

Default empty destructors #1399

Open ecatmur opened 9 months ago

ecatmur commented 9 months ago

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