[protobuf] Setting string fields

2013-08-19 Thread Alvaro Aguilera
Hello, I'm having a strange problem when setting an string value in a protocol buffer. Keep in mind that my experience in C++ and PB is rather limited. The .proto file looks more or less like this: -- package buffers; message AttributeValue { enum Type { INT64

Re: [protobuf] Setting string fields

2013-08-19 Thread Alvaro Aguilera
The problem is that if I use main-1 the string value is lost when leaving the scope of the attribute_value() function. Am I doing something wrong? On Monday, August 19, 2013 7:17:56 PM UTC+2, Ilia Mirkin wrote: Perhaps I'm dense, but what's the problem? That gdb doesn't print the exact