[protobuf] C++ modifying field without knowing field accessor at compile time

2014-10-27 Thread Peter Hubner
All I am trying to achieve is to modify a message on the fly with a set of fields that are supplied to the program at runtime. simple case: // message declared as - const google::protobuf::Message message auto x = reflection-GetDouble(message, field); // do some modification to x

Re: [protobuf] C++ modifying field without knowing field accessor at compile time

2014-10-27 Thread Peter Hubner
Yah, after looking back over my problem I refactored and removed the const ref. Just need to take my eyes of the problem for a bit. Thanks for the help. On Monday, October 27, 2014 11:15:32 AM UTC-6, Oliver wrote: On 24 October 2014 17:28, Peter Hubner peter@gmail.com javascript: wrote