以下C ++ 1y / C ++ 14程序格式错误吗?
template<class> constexpr auto X = 42;
int main()
{
static_assert(X<int> == 42, "");
}
为什么/为什么不呢?
lang主干抱怨:
error: invalid operands to binary expression ('auto' and 'int')
这是Clang中的错误,现已修复:http : //llvm.org/bugs/show_bug.cgi?id=19152
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句