Re: C++ compilation errors when using extensions

2009-08-25 Thread Kenton Varda
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 wrote: > > On Tue, Aug 25, 2009 at 10

Re: C++ compilation errors when using extensions

2009-08-25 Thread Jesper Eskilson
On Tue, Aug 25, 2009 at 10:51 AM, Jesper Eskilson 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

C++ compilation errors when using extensions

2009-08-25 Thread Jesper Eskilson
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: message ServiceCommand { ... extensions 200 to max; } This is then extended in "libsupport.proto", like this: message LibSupportMessage {