Comment #6 on issue 195 by [email protected]: common.h should not have "using namespace std;"
http://code.google.com/p/protobuf/issues/detail?id=195

I ran into this several months ago but our need to fix was obviated by moving to
Visual Studio 2008.  I ought to have upstreamed the patch.

As you discovered, conflict is between the CompileAssert template specialization and the "using namespace std" directive. What I did was to move CompileAssert to appear
before the "using namespace", and this fixed the namespace pollution.

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

Reply via email to