Internal change

PiperOrigin-RevId: 617220518
pull/16143/head
Protobuf Team Bot 2024-03-19 10:36:35 -07:00 committed by Copybara-Service
parent 7c4d89e115
commit d9727cd657
1 changed files with 4 additions and 0 deletions

View File

@ -137,6 +137,10 @@ struct PrivateAccess {
static auto CProxy(const upb_Message* p, upb_Arena* 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>