List Question
20 TechQA 2023-10-06T08:31:41.470000Explanation of [[nodiscard]] in C++17
11.7k views
Asked by Green绿色
Is there any benefit to tagging my class's constructor(s) as [[nodiscard]] when the class itself is tagged as [[nodiscard]]?
209 views
Asked by Jeremy Friesner
Fixing compiler warning C4834 - discarding return value of std::async function
155 views
Asked by StewieGGriffin
Implicit [[nodiscard]] for all const-tagged methods?
241 views
Asked by Jeremy Friesner
python: prevent discarding of the function return value
411 views
Asked by salmin
[[nodiscard]] attribute different compilation result for GCC and Clang
1.8k views
Asked by kiner_shah
Does GCC 7.3 omit the [[nodiscard]] attribute for reference returning member functions?
207 views
Asked by Caglayan DOKME
Why not apply [[nodiscard]] to every constructor?
1.5k views
Asked by Alex Guteniev
Is [[nodiscard]] any different from [[gnu::warn_unused_result]]?
518 views
Asked by alx - recommends codidact
Add nodiscard attribute to functions in third party header
483 views
Asked by Jon Chesterfield
warning C5240: 'nodiscard': attribute is ignored in this syntactic position
1.5k views
Asked by Fedor
Why clang-tidy suggests to add [[nodiscard]] everywhere?
12k views
Asked by Aditya Singh Rathore
Exclude a function's return value from [[nodiscard]]
330 views
Asked by Haozhun
[[nodiscard]] for constant getter functions
372 views
Asked by Henk
Is it right to use static_cast<void> to ignore iterator as return value?
300 views
Asked by Build Succeeded
[[nodiscard]] in std::function return type definition?
650 views
Asked by Alireza
Is nodiscard necessary on operators?
3.8k views
Asked by j__
Clang enforce [[nodiscard]] by default?
1.2k views
Asked by user997112
Why are std::source_location's getters not marked as [[nodiscard]]?
78 views
Asked by Alexander Karatarakis