From 0c72e0c09f085a371b0abdba172325e56b1e6a06 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 22 Sep 2019 00:17:29 +0200 Subject: [PATCH] AK: Add AK_MAKE_NONMOVABLE --- AK/Noncopyable.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AK/Noncopyable.h b/AK/Noncopyable.h index 2e2b9d0cbce..b5e910e5503 100644 --- a/AK/Noncopyable.h +++ b/AK/Noncopyable.h @@ -4,3 +4,8 @@ private: \ c(const c&) = delete; \ c& operator=(const c&) = delete; + +#define AK_MAKE_NONMOVABLE(c) \ +private: \ + c(c&&) = delete; \ + c& operator=(c&&) = delete;