Share via


Compiler Correctly Disambiguates Complex Expressions or Types

The following sample works in Visual C++ .NET 2003 as specified in the standard:

// compiler_correctly_disambiguates_complex_expressions_or_types.cpp
// Many different variations, this is a simple one
#include <typeinfo>
typedef void functype();
int main()
{
   return !(typeid(functype) == typeid(void()));
   //now these match correctly
}

See Also

Other Resources

Visual C++ .NET 2003 Enhanced Compiler Conformance