win32_helpers.h
no longer compiles with WIL_SUPPRESS_EXCEPTIONS
and C++20
#512
Labels
bug
Something isn't working
Compile the following in C++20 mode:
Observe error:
This seems to be caused by #490: inclusion of
<bit>
is now ultimately guarded byWIL_USE_STL
, however further down the file, the feature check for__cpp_lib_bit_cast
is done without checkingWIL_USE_STL
first. Should be easy to fix.WIL_USE_STL
seems to be automatically determined based on exception support, but the entire<bit>
header is exception-free. Should we exclude exception-free usage of STL facilities from thatWIL_USE_STL
macro, or add something likeWIL_USE_NOEXCEPT_STL
to allow inclusion of exception-free STL bits? With the obvious fix (addingWIL_USE_STL
to the feature checks), people who suppress exceptions are being pessimized (worse codegen, no constexpr filetime) for no valid reason.The text was updated successfully, but these errors were encountered: