Annotate async_generator, generator, and task with [[nodiscard]]

This commit is contained in:
Joseph Malle 2019-04-05 15:15:20 +02:00
parent 5294db8814
commit 3c60ea2df0
3 changed files with 3 additions and 3 deletions

View File

@ -346,7 +346,7 @@ namespace cppcoro
}
template<typename T>
class async_generator
class [[nodiscard]] async_generator
{
public:

View File

@ -160,7 +160,7 @@ namespace cppcoro
}
template<typename T>
class generator
class [[nodiscard]] generator
{
public:

View File

@ -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: