Compiler Correctly Disambiguates Complex Expressions or Types
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

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
}
Show:
© 2016 Microsoft