Re: [protobuf] Re: MyType_Parse() calls ParseNamedEnum() with 'const std::string' parameter instead of 'const string'

2010-09-22 Thread Evan Jones
On Sep 22, 2010, at 14:24 , Anand Ganesh wrote: This header is not using namespace std explicitly (protobuf-2.1.0). Notice how it's gotten generated with 'const string&'. Right, but at the top of google/protobuf/stubs/common.h is the following: namespace google { namespace protobuf { usi

[protobuf] Re: MyType_Parse() calls ParseNamedEnum() with 'const std::string' parameter instead of 'const string'

2010-09-22 Thread Anand Ganesh
On Sep 22, 4:20 am, Evan Jones wrote: > On Sep 21, 2010, at 20:19 , Kenton Varda wrote: > > > That still seems strange.  The generated code explicitly refers   > > to ::std::string, so it couldn't be using your type. > > Is your custom "string" type defined with macros? That would probably   > d

[protobuf] Re: MyType_Parse() calls ParseNamedEnum() with 'const std::string' parameter instead of 'const string'

2010-09-22 Thread Anand Ganesh
This is what my generated_message_reflection.h file contains: == // Helper for EnumType_Parse functions: try to parse the string 'name' as an // enum name of the given type, returning true and filling in value on success, // or returning false and leaving value unchange