Visual C++ Compiler allows dependent-name as a type without “typename”?

后端 未结 2 706
盖世英雄少女心
盖世英雄少女心 2021-01-18 21:28

Today one of my friends told me that the following code compiles well on his Visual Studio 2008:

#include 
struct A
{
  static int const const_         


        
2条回答
  •  执念已碎
    2021-01-18 22:12

    I'm not sure "extension" is exactly how I'd describe VC++ in this respect, but yes, gcc has better conformance in this regard.

提交回复
热议问题