Re: [protobuf] How to use SetString reflection method

2010-08-10 Thread Kenton Varda
In other words: reflection-SetString(fractal_handle,fractal.GetDescriptor()-FindFieldByName(name),Mandlebrot); Note the before fractal_handle. On Fri, Aug 6, 2010 at 8:34 AM, Jason Hsueh jas...@google.com wrote: The setters need a (non-const) pointer to the message object. It appears

Re: [protobuf] How to use SetString reflection method

2010-08-06 Thread Jason Hsueh
The setters need a (non-const) pointer to the message object. It appears fractal_handle is a reference since the getter, which takes a const reference to a message, compiles. On Fri, Aug 6, 2010 at 4:42 AM, mark.t.macdon...@googlemail.com mark.t.macdon...@googlemail.com wrote: Can you please