谁在C语言中正确遵循了Clang的免费扣除指南?
- 内容介绍
- 文章标签
- 相关推荐
本文共计381个文字,预计阅读时间需要2分钟。
请考虑以下简化的代码:
cpptemplatestruct list { template static void push(Args... args) { static_assert(sizeof...(Types) > 0, Types must not be empty); }};
int main() { list l; l.push(0, 0.1, 'a');}我希望这样写。
本文共计381个文字,预计阅读时间需要2分钟。
请考虑以下简化的代码:
cpptemplatestruct list { template static void push(Args... args) { static_assert(sizeof...(Types) > 0, Types must not be empty); }};
int main() { list l; l.push(0, 0.1, 'a');}我希望这样写。

