summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-07-17 02:24:02 -0700
committerAndreas Kling <kling@serenityos.org>2021-07-17 13:02:09 +0200
commit9a6e065b36eae9c58bc8726ba3823529691035c8 (patch)
treec8df7185f3b86889cc9d87b9b19c5af4ca8c4498 /AK
parentdeda32628a39b61a8088d3a8119019e5886e4cdb (diff)
downloadserenity-9a6e065b36eae9c58bc8726ba3823529691035c8.zip
AK: Mark AK::IntrusiveList Non copyable and movable
Diffstat (limited to 'AK')
-rw-r--r--AK/IntrusiveList.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/AK/IntrusiveList.h b/AK/IntrusiveList.h
index d2346d4f1b..804b3d075f 100644
--- a/AK/IntrusiveList.h
+++ b/AK/IntrusiveList.h
@@ -9,6 +9,7 @@
#include <AK/Assertions.h>
#include <AK/BitCast.h>
#include <AK/Forward.h>
+#include <AK/Noncopyable.h>
#include <AK/StdLibExtras.h>
namespace AK {
@@ -45,6 +46,9 @@ private:
template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
class IntrusiveList {
+ AK_MAKE_NONCOPYABLE(IntrusiveList);
+ AK_MAKE_NONMOVABLE(IntrusiveList);
+
public:
IntrusiveList() = default;
~IntrusiveList();