Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Compiler Correctly Disambiguates Complex Expressions or Types

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
}

Community Additions

ADD
Show:
© 2015 Microsoft