Fixed new nodiscard attribute.
This commit is contained in:
parent
eccaa177ca
commit
251393ae48
@ -335,8 +335,7 @@ struct TaskPromise : impl::TaskReturn<typename TTraits::result_t, TaskPromise<TT
|
|||||||
};
|
};
|
||||||
|
|
||||||
template<typename TResult>
|
template<typename TResult>
|
||||||
[[nodiscard("Tasks should either we awaited or added to a loop.")]]
|
class [[nodiscard("Tasks should either we awaited or added to a loop.")]] TaskBase
|
||||||
class TaskBase
|
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
using task_t = TaskBase;
|
using task_t = TaskBase;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user