I managed to get it down to a minimal sample that reproduces the
problem in VS2005.  It doesn't even need a separate header.  The
following complete program exhibits the problem independent of whether
or not precompiled headers are being used:

#include <iostream>
#include <string>

namespace test
    using namespace std;
    template<typename T> struct X {};

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

This code compiles in VS2k5.  Commenting out the template struct makes
it fail to compile with the correct error.  Really strange bug, but I
don't have VS2k8.  If you can confirm the problem doesn't exist with
2k8 maybe submitting it won't do any good.
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