以下C++ 1y/C++ 14程序是否格式错误?
template<class> constexpr auto X = 42;
int main()
{
        static_assert(X<int> == 42, "");
}
为什么/为什么不呢?
Clang trunk抱怨说:
error: invalid operands to binary expression ('auto' and 'int')
| 归档时间: | 
 | 
| 查看次数: | 256 次 | 
| 最近记录: |