Hi Feng,

I have a question: looks like there is no copy constructor that takes arena 
pointer. I got compilation error on this:

  feature_package::MyFeatureMessage* arena_message =
       Arena::CreateMessage<feature_package::MyFeatureMessage>(arena, m);
I need to rewrite this in 2 steps:

  feature_package::MyFeatureMessage* arena_message =
       Arena::CreateMessage<feature_package::MyFeatureMessage>(arena);
  arena_message->CopyFrom(m);

My question is that would this be less efficient than a copy constructor 
with arena pointer if there were such one?

Thanks,
Minghui

-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to