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 12 months ago committed by Copybara-Service
parent c288343d01
commit 35b564845c
  1. 7
      src/google/protobuf/message.cc

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

Loading…
Cancel
Save