Skip to content

Fix redundant redeclaration when build with C++ >= 17.#530

Merged
mborland merged 1 commit into
boostorg:developfrom
Romain-Geissler-1A:fix-deprecated-inline-variable-redundant-definition
Feb 14, 2023
Merged

Fix redundant redeclaration when build with C++ >= 17.#530
mborland merged 1 commit into
boostorg:developfrom
Romain-Geissler-1A:fix-deprecated-inline-variable-redundant-definition

Conversation

@Romain-Geissler-1A

Copy link
Copy Markdown
Contributor

This fixes the following error when using C++ >= 17 and gcc 11:

/data/mwrep/res/osp/Boost/21-0-0-9/include/boost/multiprecision/cpp_int/literals.hpp:220:13: error: redundant redeclaration of 'constexpr' static data member 'boost::multiprecision::literals::detail::make_backend_from_pack<Pack, B>::value' [-Werror=deprecated]

/data/mwrep/res/osp/Boost/21-0-0-9/include/boost/multiprecision/cpp_int/literals.hpp:220:13: error: redundant redeclaration of 'constexpr' static data member 'boost::multiprecision::literals::detail::make_backend_from_pack<Pack, B>::value' [-Werror=deprecated]
@mborland

Copy link
Copy Markdown
Member

Looks good to me. This was deprecated in C++17 as they are now implicitly inlined.

@mborland mborland merged commit 6d37ff7 into boostorg:develop Feb 14, 2023
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.

2 participants