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

MSVC 2022 warning about stdfloat not available till c++23 #1213

Open
yoavmil opened this issue Nov 6, 2023 · 0 comments
Open

MSVC 2022 warning about stdfloat not available till c++23 #1213

yoavmil opened this issue Nov 6, 2023 · 0 comments

Comments

@yoavmil
Copy link

yoavmil commented Nov 6, 2023

I get a compiler warning when including <boost/geometry.hpp>, because it includes <promotion.hpp> which includes <stdfloat>

#if __has_include(<stdfloat>) // this resolves to true somehow
#  include <stdfloat>
#endif
// at stdfloat
#if !_HAS_CXX23
_EMIT_STL_WARNING(STL4038, "The contents of <stdfloat> are available only with C++23 or later.");
#else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv

may be replace #if __has_include(<stdfloat>) with #if __has_include(<stdfloat>) & _HAS_CXX23

@mclow mclow transferred this issue from boostorg/boost Nov 6, 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

No branches or pull requests

1 participant