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 generated for an enum called XXX
inline const ::std::xxx& XXX_XXXIdentifier_Name(XXX_XXXIdentifier value) {
  return ::google::protobuf::internal::NameOfEnum(
    XXX_XXXIdentifier_descriptor(), value);
}
inline bool XXX_XXXIdentifier_Parse(
    const ::std::xxx& name, XXX_XXXIdentifier* value) {
  return ::google::protobuf::internal::ParseNamedEnum<XXX_XXXIdentifier>(
    XXX_XXXIdentifier_descriptor(), name, value);
}


-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to protobuf+unsubscr...@googlegroups.com.
To post to this group, send email to protobuf@googlegroups.com.
Visit this group at http://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to