The getters for embedded messages return a reference - see
http://code.google.com/apis/protocolbuffers/docs/reference/cpp-generated.html

On Tue, Mar 16, 2010 at 9:02 PM, jungle <www1...@gmail.com> wrote:

> here is the .proto
>
> message Bar{
>    required int32 l = 1;
> }
>
> message Foo{
>    option Bar bar = 1;
> }
>
> Foo foo;
> foo.get_bar()??? it returns a pointer to the message bar?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to proto...@googlegroups.com.
> To unsubscribe from this group, send email to
> protobuf+unsubscr...@googlegroups.com<protobuf%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to