Fix -Wdeprecated-copy-with-dtor warnings with clang.

/data/mwrep/res/osp/Boost/23-0-0-0/include/boost/lexical_cast/bad_lexical_cast.hpp:59:9: error: definition of implicit copy constructor for 'bad_lexical_cast' is deprecated because it has a user-declared destructor
 [-Werror,-Wdeprecated-copy-with-dtor]
        ~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE = default;
This commit is contained in:
Romain Geissler
2023-06-02 13:15:18 +00:00
parent 35941953d1
commit 20db4f8d32
@@ -56,8 +56,10 @@ namespace boost
"source type value could not be interpreted as target";
}
~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE
{}
~bad_lexical_cast() BOOST_NOEXCEPT_OR_NOTHROW BOOST_OVERRIDE = default;
bad_lexical_cast(const bad_lexical_cast&) BOOST_NOEXCEPT_OR_NOTHROW = default;
bad_lexical_cast& operator=(const bad_lexical_cast&) BOOST_NOEXCEPT_OR_NOTHROW = default;
#ifndef BOOST_NO_TYPEID
private: