From b15b51f9da2c44fd917b69fa9e51d20fa61ccd27 Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Mon, 19 Feb 2024 22:21:39 -0500 Subject: [PATCH] AK: Don't delete Badge move constructor Otherwise it is impossible to use Badge as an argument of a coroutine. --- AK/Badge.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/AK/Badge.h b/AK/Badge.h index 34ca5d369be..01b3d198ca3 100644 --- a/AK/Badge.h +++ b/AK/Badge.h @@ -15,15 +15,15 @@ class Badge { public: using Type = T; + Badge(Badge&&) = default; + Badge& operator=(Badge&&) = default; + private: friend T; constexpr Badge() = default; Badge(Badge const&) = delete; Badge& operator=(Badge const&) = delete; - - Badge(Badge&&) = delete; - Badge& operator=(Badge&&) = delete; }; }