diff --git a/src/Collections/List.hpp b/src/Collections/List.hpp index 3be7da1..9796881 100644 --- a/src/Collections/List.hpp +++ b/src/Collections/List.hpp @@ -154,7 +154,8 @@ namespace ArbUt { /// @return A std::vector representation of the current list. std::vector& GetStdList() noexcept { return _vector; } - inline List* GetListPointer() const { return this; } + inline const List* GetListPointer() const { return this; } + inline List* GetListPointer() { return this; } }; } diff --git a/src/Memory/__OptionalUniquePtrList.hpp b/src/Memory/__OptionalUniquePtrList.hpp index 2808d18..9606dda 100644 --- a/src/Memory/__OptionalUniquePtrList.hpp +++ b/src/Memory/__OptionalUniquePtrList.hpp @@ -145,7 +145,8 @@ namespace ArbUt { /// @return A std::vector representation of the current list. std::vector& GetStdList() noexcept { return _vector; } - inline OptionalUniquePtrList* GetListPointer() const { return this; } + inline const OptionalUniquePtrList* GetListPointer() const { return this; } + inline OptionalUniquePtrList* GetListPointer() { return this; } }; } diff --git a/src/Memory/__UniquePtrList.hpp b/src/Memory/__UniquePtrList.hpp index fe3f0d6..c4fec1a 100644 --- a/src/Memory/__UniquePtrList.hpp +++ b/src/Memory/__UniquePtrList.hpp @@ -154,7 +154,8 @@ namespace ArbUt { /// @return A std::vector representation of the current list. std::vector& GetStdList() noexcept { return _vector; } - inline UniquePtrList* GetListPointer() const { return this; } + inline const UniquePtrList* GetListPointer() const { return this; } + inline UniquePtrList* GetListPointer() { return this; } }; }