Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Aug 12, 2023

Conversation

Romain-Geissler-1A
Copy link
Contributor

This fixes warning like this:

/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;

Note: this fix requires C++11, so it must wait the merge Boost 1.84 merge window.

The fix proposed in #57 is not enough (explicitly defaulting the destructor doesn't change the warning).

/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;
@apolukhin apolukhin merged commit 844a4d1 into boostorg:develop Aug 12, 2023
1 check passed
@apolukhin
Copy link
Member

Many thanks for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants