Switch At functions around.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2020-03-22 18:34:05 +01:00
parent 196bf5e1da
commit cc86041b06
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 3 additions and 2 deletions

View File

@ -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;