Just tried it in 2005 with the following code:

#include <iostream>
#include <string>

namespace test
   using std::vector;
   using std::string;
   using std::cout;
   template<typename T> struct X
      void f()
         vector<string> v;
         cout << v[0] << std::endl;

int main(int argc, char** argv)
   string test = "hello";
   return 0;

fails to compile in Vs2k5 which is the correct behavior, so I guess that's a
valid workaround.

On Tue, May 19, 2009 at 4:26 PM, Kenton Varda <ken...@google.com> wrote:

> The code does not compile in VS2k8.
> Did you try replacing the "using namespace std;" with a bunch of individual
> "using std::Foo;" directives?  Can we work around the problem that way?

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to