boostorg / test

The reference C++ unit testing framework (TDD, xUnit, C++03/11/14/17)
http://boost.org/libs/test
Boost Software License 1.0
183 stars 140 forks source link

Use BOOST_DEFAULTED_FUNCTION on empty destructors #375

Closed ecatmur closed 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.

mborland commented 1 year ago

This looks correct to me. I'll check again once the CI system cycles.