boostorg / lexical_cast

General literal text conversions, such as an int represented as a string, or vice versa
https://boost.org/libs/lexical_cast
34 stars 58 forks source link

Use BOOST_DEFAULTED_FUNCTION on empty destructors #57

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.

apolukhin commented 1 year ago

Fixed in https://github.com/boostorg/lexical_cast/commit/844a4d1640a94b3884e3895d77e05c98c74000ce

Many thanks for the report and for the hint on fixing!