4 ms·
All non-void return values should be [[nodiscard]] by default. Of course then you will need something else ([[discardable]]?) to indicate the ones that may safe
by usefulcat 4y ago
All non-void return values should be [[nodiscard]] by default. Of course then you will need something else ([[discardable]]?) to indicate the ones that may safely be ignored.
- compiler-devel 4y agoInteresting idea!
- mxmlnkn 4y agoCouldn't [[maybe_unused]] fill the role of [[discardable]]?