[protobuf] example of enum to string.

2013-10-07 Thread amirk
Hi, I am new to prtobuf, and I am having issues to enum to string conversion in C++. I see that there is genereated code for it (see below) but when I try to call these functions I am getting a segmentation fault. Can someone please post a C++ based example. Thanks, Amir this is the code genera

[protobuf] enum to string example

2013-10-07 Thread amirk
Hi, I am new to protobuf, Can someone please post an example of enum to string conversion in C++? I see that there is generated code for it (see below example for enum called XXX), but when I try to call I get a segmentation fault. Thanks, Amir inline const ::std::xxx& XXX_XXXIdentifier_Name(X