The statement in question is:
constexpr std::string cs{ "hello" };
godbolt
says it is OK since x64 msvc v19.34 VS 17.4. I installed Visual Studio 2022
version 17.11.4 with msvc 19.41.34120 for x86, but this statement still
causes an error in VS: error C2131: expression did not evaluate to a
constant. Do you how to have this
constexpr
statement compile in VS? Thanks.