summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-09-22 00:17:29 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-09-22 00:17:29 +0200
commit0c72e0c09f085a371b0abdba172325e56b1e6a06 (patch)
tree0478464f2abcb77153e323ee19c35d67428790a1
parent8d550c174edad68726b8e9c3cd5cd950bf1bf16a (diff)
downloadserenity-0c72e0c09f085a371b0abdba172325e56b1e6a06.zip
AK: Add AK_MAKE_NONMOVABLE
-rw-r--r--AK/Noncopyable.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/AK/Noncopyable.h b/AK/Noncopyable.h
index 2e2b9d0cbc..b5e910e550 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;