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;