google::protobuf::Arena arena;
T *proto_ptra =
google::protobuf::Arena::CreateMessage<T>(&arena);
T b;
proto_ptra->Swap(&b);
why? run it and what(): Unknown error -1
protobuf can not Swap when using Arena?
why? run it and what(): Unknown error -1
protobuf can not Swap when using Arena?
New contributor
zhaobo is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.