opentelemetry::proto::common::v1::_KeyValue_default_instance_
: illegal initialization of constinit
entity with a non-constant expression (C++20)
#819
Labels
bug
Something isn't working
Building with latest version of Visual Studio 2019 - update 16.10.0 , C++20 - using
-std:c++latest
, generated protobufs fail with this error:Something related to this code here:
Since it used to work before, I wonder if it's related to 16.10.0 now defining
__cpp_constinit
. My speculation at this point that I'm using slightly older version of all dependencies (via vcpkg), and maybe missing this protobuf fix:And most likely the code still works well with Visual Studio 2019 update 16.9.x. Need to dig deeper to understand the best solution, most likely starting with pulling the latest protobuf. And checking if latest vs2019 compiler works well with latest protobuf. If not, possibly applying a patch to disable
PROTOBUF_CONSTINIT
how it's done for__GNUC__
.The text was updated successfully, but these errors were encountered: