Internal change

PiperOrigin-RevId: 617220518
pull/16143/head
Protobuf Team Bot 8 months ago committed by Copybara-Service
parent 7c4d89e115
commit d9727cd657
  1. 4
      protos/protos.h

@ -137,6 +137,10 @@ struct PrivateAccess {
static auto CProxy(const upb_Message* p, upb_Arena* arena) { static auto CProxy(const upb_Message* p, upb_Arena* arena) {
return typename T::CProxy(p, arena); return typename T::CProxy(p, arena);
} }
template <typename T>
static auto CreateMessage(upb_Arena* arena) {
return typename T::Proxy(upb_Message_New(T::minitable(), arena), arena);
}
}; };
template <typename T> template <typename T>

Loading…
Cancel
Save