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, [email protected] <
[email protected]> 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 [email protected].
> To unsubscribe from this group, send email to
> [email protected]<protobuf%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to