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.
属性は[[nodiscard]]演算子に必要ですか? それとも、ほとんどの疑わしい破棄されたものに対して行うように、コンパイラが警告を発すると想定しても安全ですか?
[[nodiscard]]
たとえば、オーバーロードoperator+された 、属性を適用する必要がありますか? 関数キャスト演算子や新しい演算子などの特殊な演算子はどうですか? それはいつペダンティックですか?
operator+