We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5294db8 commit 3c60ea2Copy full SHA for 3c60ea2
include/cppcoro/async_generator.hpp
@@ -346,7 +346,7 @@ namespace cppcoro
346
}
347
348
template<typename T>
349
- class async_generator
+ class [[nodiscard]] async_generator
350
{
351
public:
352
include/cppcoro/generator.hpp
@@ -160,7 +160,7 @@ namespace cppcoro
160
161
162
163
- class generator
+ class [[nodiscard]] generator
164
165
166
include/cppcoro/task.hpp
@@ -280,7 +280,7 @@ namespace cppcoro
280
/// caller. Execution of the coroutine body does not start until the
281
/// coroutine is first co_await'ed.
282
template<typename T = void>
283
- class task
+ class [[nodiscard]] task
284
285
286
0 commit comments