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 {

using namespace std;  // Don't do this at home, kids.



That file is included via:

generated_message_reflection.h -> message_lite.h -> stubs/common.h


So there is some sort of weird namespace clashing going on. I wonder if maybe the issue is that the code in generated_message_reflection.h is in the google::protobuf::internal namespace, rather than in google::protobuf?

Good luck,

Evan

--
Evan Jones
http://evanjones.ca/

--
You received this message because you are subscribed to the Google Groups "Protocol 
Buffers" group.
To post to this group, send email to proto...@googlegroups.com.
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to