boostorg / boostorg/geometry

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

Open
#1,213 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C++
Stars
517
Forks
232
PR merge metrics
No merged PRs in 30d

Description

I get a compiler warning when including ``, because it includes `` which includes ``
```c++
#if __has_include() // this resolves to true somehow
# include
#endif
```

```c++
// at stdfloat
#if !_HAS_CXX23
_EMIT_STL_WARNING(STL4038, "The contents of are available only with C++23 or later.");
#else // ^^^ !_HAS_CXX23 / _HAS_CXX23 vvv
```

may be replace `#if __has_include()` with `#if __has_include() & _HAS_CXX23`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.