Are checked guard parameter packs cause of ill-formed programs in case of specializations?

我的梦境 提交于 2019-12-04 03:05:32
Columbo

[temp.res]/8 talks about template-declarations, not the entity. That is, it talks about primary templates and partial specializations individually; these "templates" must each have a valid specialization subject to the rules. Otherwise, the first bullet in that paragraph would have to be interpreted in the same manner, which definitely doesn't give it its intended meaning.

template <typename T>
void f() {T+0;} // wouldn't be allowed to diagnose this, because there could be an 
                // explicit specialization that doesn't contain this statement...?
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!