diff --git a/src/headers/parsing/ParseComponents.hpp b/src/headers/parsing/ParseComponents.hpp index f191182..6727ba0 100644 --- a/src/headers/parsing/ParseComponents.hpp +++ b/src/headers/parsing/ParseComponents.hpp @@ -77,6 +77,7 @@ public: return optional>(); }; inline component_ptr& operator[](const unsigned int& index) const { return subComponents[index]; } + inline component_ptr& at(const unsigned int& index) const { return subComponents.at(index); } IS(NamedIdentifier) inline auto operator[](const string& key) const { return findReferenceByName(key); } IS_PARSECOMPONENT inline void add(const T& component) { addComponent(component); }