From cc86041b06b8ccd4ee046b35d4815724280f02c3 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 22 Mar 2020 18:34:05 +0100 Subject: [PATCH] Switch At functions around. --- src/Collections/List.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Collections/List.hpp b/src/Collections/List.hpp index 5f70a61..e6ea124 100644 --- a/src/Collections/List.hpp +++ b/src/Collections/List.hpp @@ -20,7 +20,7 @@ namespace Arbutils::Collections { inline void Clear() { _vector.clear(); } - inline const ValueT& At(size_t index) const { + inline ValueT& At(size_t index) { #ifndef NO_ASSERT if (index >= _vector.size() || index < 0) { std::stringstream ss; @@ -30,7 +30,8 @@ namespace Arbutils::Collections { #endif return _vector.at(index); } - inline ValueT& At(size_t index) { + + inline const ValueT& At(size_t index) const { #ifndef NO_ASSERT if (index >= _vector.size() || index < 0) { std::stringstream ss;