Skip to content

Add BOOST_LIBSTDCXX_VERSION_WORKAROUND_GUARD#532

Merged
pdimov merged 1 commit intodevelopfrom
pr/libstdcxx-workaround-guard
Jan 4, 2026
Merged

Add BOOST_LIBSTDCXX_VERSION_WORKAROUND_GUARD#532
pdimov merged 1 commit intodevelopfrom
pr/libstdcxx-workaround-guard

Conversation

@pdimov
Copy link
Member

@pdimov pdimov commented Jan 4, 2026

This avoids the -Wundef warning when BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION, ...) is used without a defined(BOOST_LIBSTDCXX_VERSION) check.

@pdimov
Copy link
Member Author

pdimov commented Jan 4, 2026

Merging because the -Wundef warning is unavoidable on the user side even if guarded.

./boost/unordered/detail/type_traits.hpp:66:58: error: "BOOST_LIBSTDCXX_VERSION_WORKAROUND_GUARD" is not defined [-Werror=undef]
 #if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_WORKAROUND(BOOST_LIBSTDCXX_VERSION, < 50000)
                                                          ^

@pdimov pdimov merged commit 3d07261 into develop Jan 4, 2026
19 checks passed
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.

1 participant