From c87a767300ebd0ca71723a73db3aa680f34a9798 Mon Sep 17 00:00:00 2001 From: Martijn Vels Date: Thu, 13 Jul 2023 15:00:58 -0700 Subject: [PATCH] Make Arena a friend class as it needs to be able to use InternalVisibility PiperOrigin-RevId: 547932793 --- src/google/protobuf/internal_visibility.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/google/protobuf/internal_visibility.h b/src/google/protobuf/internal_visibility.h index 32a5a7f4bb..1c89b637aa 100644 --- a/src/google/protobuf/internal_visibility.h +++ b/src/google/protobuf/internal_visibility.h @@ -33,6 +33,7 @@ namespace google { namespace protobuf { +class Arena; class Message; class MessageLite; @@ -48,6 +49,7 @@ class InternalVisibility { // ctor outside of the class to force a private ctor instance. explicit constexpr InternalVisibility(); + friend class ::google::protobuf::Arena; friend class ::google::protobuf::Message; friend class ::google::protobuf::MessageLite;