diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-09-22 00:17:29 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-09-22 00:17:29 +0200 |
commit | 0c72e0c09f085a371b0abdba172325e56b1e6a06 (patch) | |
tree | 0478464f2abcb77153e323ee19c35d67428790a1 | |
parent | 8d550c174edad68726b8e9c3cd5cd950bf1bf16a (diff) | |
download | serenity-0c72e0c09f085a371b0abdba172325e56b1e6a06.zip |
AK: Add AK_MAKE_NONMOVABLE
-rw-r--r-- | AK/Noncopyable.h | 5 |
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; |