Fixed new nodiscard attribute.

This commit is contained in:
Patrick 2024-06-27 19:18:43 +02:00
parent eccaa177ca
commit 251393ae48

View File

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