Make Arena a friend class as it needs to be able to use InternalVisibility

PiperOrigin-RevId: 547932793
pull/13311/head
Martijn Vels 1 year ago committed by Copybara-Service
parent 3643ad10c9
commit c87a767300
  1. 2
      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;

Loading…
Cancel
Save