G
Guest
Does anybody else see this in VS.NET 2003?
When I get a genuine C++ compiler error (could be anything, usually
innocuous) it's regularly followed by a slew of these spurious and completely
unrelated ones:
error C2593: 'operator <<' is ambiguous
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\ostream(697): could be 'std::basic_ostream<_Elem,_Traits>
&std:perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits>
&,const char *)' [found using argument-dependent lookup]
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\ostream(697): or 'std::basic_ostream<_Elem,_Traits>
&std:perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits>
&,const char *)' [found using argument-dependent lookup]
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
while trying to match the argument list '(std:stream, const char
[4])'
There's probably one of these for every use of operator<< in the file, but
I've never bothered to check that; there are just lots. Note that where it
says "could be X or Y", X and Y are identical! There's nothing obviously
wrong with the use of these operators, and if I fix the real error the
spurious ones disappear.
If nobody else is getting this, what might I be doing to make it happen?
It's beginning to really irritate me.
Rob
When I get a genuine C++ compiler error (could be anything, usually
innocuous) it's regularly followed by a slew of these spurious and completely
unrelated ones:
error C2593: 'operator <<' is ambiguous
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\ostream(697): could be 'std::basic_ostream<_Elem,_Traits>
&std:perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits>
&,const char *)' [found using argument-dependent lookup]
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\include\ostream(697): or 'std::basic_ostream<_Elem,_Traits>
&std:perator <<<std::char_traits<char>>(std::basic_ostream<_Elem,_Traits>
&,const char *)' [found using argument-dependent lookup]
with
[
_Elem=char,
_Traits=std::char_traits<char>
]
while trying to match the argument list '(std:stream, const char
[4])'
There's probably one of these for every use of operator<< in the file, but
I've never bothered to check that; there are just lots. Note that where it
says "could be X or Y", X and Y are identical! There's nothing obviously
wrong with the use of these operators, and if I fix the real error the
spurious ones disappear.
If nobody else is getting this, what might I be doing to make it happen?
It's beginning to really irritate me.
Rob