Status: New
Owner: liuj...@google.com
Labels: Type-Defect Priority-Medium

New issue 544 by moti...@gmail.com: C++ headers use unqualified (=potentially ambiguous) names from std namespace
http://code.google.com/p/protobuf/issues/detail?id=544

When used alongside a library that reuses (in a separate namespace) names from the standard library, protobuf headers may fail to compile with an "ambiguous symbol" error.

In my case, my project uses uBLAS, which defines the template boost::numeric::ublas::vector. Now I can't include the headers message.h, generated_message_reflection.h, unknown_field_set.h unmodified, because they refer to vector<...> rather than std::vector<...>, which creates an ambiguity in the context in which I'm including them.

A quick search through the code shows that this is a consistent pattern (at least with regards to the name "vector"), so I'm a little puzzled.

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
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