message MyRec1
{
  int32 a=1;
}
message MyRec
{
   MyRec1 rec = 1;
}

auto *rec= google::protobuf::Arena::Create<MyRec>(arena);
rec->mutable_rec()->set_a(100);

mtable_rec() is creating memory using new...Arena which I have used for 
creating MyRec is not used.

Please help.

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/199f8aab-7b6a-4992-be8c-a696d394d79an%40googlegroups.com.

Reply via email to