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>
|
||||
[[nodiscard("Tasks should either we awaited or added to a loop.")]]
|
||||
class TaskBase
|
||||
class [[nodiscard("Tasks should either we awaited or added to a loop.")]] TaskBase
|
||||
{
|
||||
public:
|
||||
using task_t = TaskBase;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user