Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
C++17 具有nodiscard防止人们忽略函数返回值的属性。
nodiscard
将它添加到代码库中的每个函数似乎有点过头了。
是否有一个标志告诉 Clang 默认强制执行此操作?