Annotate async_generator, generator, and task with [[nodiscard]]
This commit is contained in:
parent
5294db8814
commit
3c60ea2df0
|
@ -346,7 +346,7 @@ namespace cppcoro
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
class async_generator
|
||||
class [[nodiscard]] async_generator
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
|
@ -160,7 +160,7 @@ namespace cppcoro
|
|||
}
|
||||
|
||||
template<typename T>
|
||||
class generator
|
||||
class [[nodiscard]] generator
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
|
@ -280,7 +280,7 @@ namespace cppcoro
|
|||
/// caller. Execution of the coroutine body does not start until the
|
||||
/// coroutine is first co_await'ed.
|
||||
template<typename T = void>
|
||||
class task
|
||||
class [[nodiscard]] task
|
||||
{
|
||||
public:
|
||||
|
||||
|
|
Loading…
Reference in New Issue