[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2014-08-05 Thread protobuf
Comment #11 on issue 195 by etienne@gmail.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Hello google ! I just ran into this using namespace std; in common.h... Do you guys have any plans to remove this ugly using from the

Re: [protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2014-08-05 Thread 'Feng Xiao' via Protocol Buffers
On Tue, Aug 5, 2014 at 4:53 AM, proto...@googlecode.com wrote: Comment #11 on issue 195 by etienne@gmail.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Hello google ! I just ran into this using namespace std; in common.h...

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2011-09-08 Thread protobuf
Comment #8 on issue 195 by robin.la...@gmail.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 I just hit this problem today on Solaris with protobuf 2.4.1 using g++ 4.6.1 with -std=c++0x. It blew up the compilation of protobuf itself

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2011-09-08 Thread protobuf
Comment #9 on issue 195 by ncar...@gmail.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 The original bug described here is very much due to a Visual C++ compiler bug. Your bug sounds like a name clash introduced by some specific

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2011-09-08 Thread protobuf
Comment #10 on issue 195 by ken...@google.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 It sounds like the bug reported by Robin may be slightly different: If net/if.h happens to be #included before a protobuf header, then any

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Comment #1 on issue 195 by ken...@google.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 using namespace std; appears *inside* the google::protobuf namespace, so it shouldn't affect you. We do *not* add any new symbols to the

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Comment #2 on issue 195 by jmccaskey: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Yes, although the using statement is inside your own namespace it appears that at least in Visual C++ 2005 the encapsulation is leaky and having used

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Comment #3 on issue 195 by jmccaskey: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Ok, it looks like this *is* a Visual C++ bug. I can simplify my test program down to the following and the errors still occur and the using namespace

Re: [protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread Monty Taylor
On 06/04/2010 11:48 AM, proto...@googlecode.com wrote: Comment #3 on issue 195 by jmccaskey: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Ok, it looks like this *is* a Visual C++ bug. I can simplify my test program down to the

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Comment #4 on issue 195 by jmccaskey: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 Ok, and one final follow up. I didn't find any hotfixes for VC++ for this, but moving the using namespace std; to occur right before the closing of

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Updates: Status: Accepted Comment #5 on issue 195 by ken...@google.com: common.h should not have using namespace std; http://code.google.com/p/protobuf/issues/detail?id=195 what if my application code wanted to use the google::protobuf name space but not std? You should never use

[protobuf] Re: Issue 195 in protobuf: common.h should not have using namespace std;

2010-06-04 Thread protobuf
Comment #6 on issue 195 by ncar...@google.com: 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.