Do not define a `const` static variable as `constexpr`. While this is legal it

is not supported in all toolchains.

Should fix https://github.com/protocolbuffers/protobuf/issues/15030

PiperOrigin-RevId: 592574780
pull/15144/head
Protobuf Team Bot 11 months ago committed by Copybara-Service
parent c288343d01
commit 35b564845c
  1. 3
      src/google/protobuf/message.cc

@ -192,7 +192,8 @@ static std::string InitializationErrorStringImpl(const MessageLite& msg) {
return DownCast<const Message&>(msg).InitializationErrorString();
}
constexpr MessageLite::DescriptorMethods Message::kDescriptorMethods = {
PROTOBUF_CONSTINIT const MessageLite::DescriptorMethods
Message::kDescriptorMethods = {
GetTypeNameImpl,
InitializationErrorStringImpl,
};

Loading…
Cancel
Save