Skip to content

Commit

Permalink
AK: Mark AK::IntrusiveList Non copyable and movable
Browse files Browse the repository at this point in the history
  • Loading branch information
bgianfo authored and awesomekling committed Jul 17, 2021
1 parent deda326 commit 9a6e065
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AK/IntrusiveList.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -45,6 +46,9 @@ class IntrusiveListStorage {

template<class T, typename Container, IntrusiveListNode<T, Container> T::*member>
class IntrusiveList {
AK_MAKE_NONCOPYABLE(IntrusiveList);
AK_MAKE_NONMOVABLE(IntrusiveList);

public:
IntrusiveList() = default;
~IntrusiveList();
Expand Down

0 comments on commit 9a6e065

Please sign in to comment.