
20 Apr
2007
20 Apr
'07
2:41 p.m.
Tim Murison wrote:
Hi,
I'm getting a compiler error with MSVC .NET 2003 in release mode. Compiling the following code gives: "error C2676: binary '&&' : 'const ASP' does not define this operator or a conversion to a type acceptable to the predefined operator"
If I compile in debug mode, or if I remove the "const" on the shared_ptr arguments, it complies without complaint.
Interestingly, I'm getting the same error in debug builds and non-const arguments as well, even on if( a && b ). I'll try to find a workaround. FWIW, VC8 compiles the code.