diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-04 00:27:16 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-04 00:27:16 +0100 |
commit | ca6847b5bb6d9b86d5f2123533ebfe510c01d880 (patch) | |
tree | 8515f9360e8ade5478edd0acd4d994fe33d8e520 /AK/Noncopyable.h | |
parent | 405383fd2f9757cebd175c5be9cfa65c48fe15f0 (diff) | |
download | serenity-ca6847b5bb6d9b86d5f2123533ebfe510c01d880.zip |
Import a simple text editor I started working on.
Diffstat (limited to 'AK/Noncopyable.h')
-rw-r--r-- | AK/Noncopyable.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/AK/Noncopyable.h b/AK/Noncopyable.h new file mode 100644 index 0000000000..ff7df2346b --- /dev/null +++ b/AK/Noncopyable.h @@ -0,0 +1,6 @@ +#pragma once + +#define AK_MAKE_NONCOPYABLE(c) \ +private: \ + c(const c&) = delete; \ + c& operator=(const c&) = delete; |