boostorg / thread

Boost.org thread module
http://boost.org/libs/thread
197 stars 162 forks source link

Use BOOST_DEFAULTED_FUNCTION on empty destructors #381

Open ecatmur opened 1 year ago

ecatmur commented 1 year ago

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.