descriptor() is a static method only available in generated classes. If you
have a pointer to a Message, there is no accessible descriptor() method, so
generally you should use GetDescriptor().

On Thu, Jul 15, 2010 at 1:22 PM, mark.t.macdon...@googlemail.com <
mark.t.macdon...@googlemail.com> wrote:

> Both the following work in my code:
>
> const Descriptor* d=message->GetDescriptor();
> const Descriptor* d=message->descriptor();
>
> What's the difference and which should I use?
>
> Thanks!
>
> --
> 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