Skip to content

Commit 92892f3

Browse files
gomez-addamslewissbaker
authored andcommitted
Make recursive_generator [[nodiscard]] like generator (ditto shared_task)
1 parent f533d1f commit 92892f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

include/cppcoro/recursive_generator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
namespace cppcoro
1717
{
1818
template<typename T>
19-
class recursive_generator
19+
class [[nodiscard]] recursive_generator
2020
{
2121
public:
2222

include/cppcoro/shared_task.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ namespace cppcoro
292292
}
293293

294294
template<typename T = void>
295-
class shared_task
295+
class [[nodiscard]] shared_task
296296
{
297297
public:
298298

0 commit comments

Comments
 (0)