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