You mean MutableExtension()?  Yes, you can't use SetExtension() on
message-typed extensions because regular fields of message type don't have a
set_foo() accessor.  So, you must use MutableExtension() instead.

On Tue, Aug 25, 2009 at 5:34 AM, Jesper Eskilson <jes...@eskilson.se> wrote:

>
> On Tue, Aug 25, 2009 at 10:51 AM, Jesper Eskilson<jes...@eskilson.se>
> wrote:
> > I'm getting a C++ template error message I'm having trouble
> > understanding. I have two .proto files, one called "cdp.proto" which
> > defines ServiceCommand:
>
> Problem solved. I realized that I need to use the GenericExtension()
> method just like when setting regular fields.
>
> --
> /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