Closed maksymilian-palka closed 2 years ago
It looks like the issue is that boost config is using BOOST_STATIC_STRING_STANDARD_VERSION
to determine if BOOST_STATIC_STRING_CPP20
is defined, which is essentially cplusplus with fixes for MSVC. This does not tell us that the compiler supports anything in C++20 other than the -std=c++20 flag has been set. I think for the init stuff in C++20, there is a feature flag set by the compiler `cpp_constexpr_dynamic_alloc >= 201907L`, but not 100% that is the correct flag.
@beached it should be __cpp_constexpr >= 201907L
.
https://en.cppreference.com/w/cpp/feature_test
Ah ok, I see now. I thought it might have came with the allocator support in More Constexpr Containers, I didn't know about Permitting trivial default initialization in constexpr contexts
This should have been fixed in #32
Hello,
I have compilation errors for the following code:
The code fails to compile under:
The walk around I've found is to allow an array initialisation of
static_string_base
class, meaning replacing:with