编译器正确地消除复杂表达式或类型

下面的示例在 Visual C++ .NET 2003 中工作在该标准上指定:

// 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
}

请参见

其他资源

Visual C++ .NET 2003增强的编译器一致性