In C++ all compiled-in extensions are automatically registered in a global
registry which is used automatically by all compiled-in classes.  I now
regret this design decision due to a number of subtle problems it creates,
but for you it means that you don't have to do anything special.

On Wed, Aug 26, 2009 at 7:49 AM, Jesper Eskilson <jes...@eskilson.se> wrote:

>
> How do you parse a message from a byte-steam which contains
> extensions? In Java, I can do
>
>    ExtensionRegistry registry = ...
>    registry.add(...);
>    Foo.parseFrom(buf, registry)
>
> but I can't find any reference on how to do this in C++.
>
> --
> /Jesper
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@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