Remove the const specifier in the "begin" and "end" functions of ParseTree, since they call non-const functions

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-04-17 13:10:58 +02:00
parent 663979ea65
commit 8d239694cf
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 2 deletions

View File

@ -54,9 +54,9 @@ protected:
public:
inline size_t size() const { return subComponents.size(); }
inline bool empty() const { return size() == 0; }
inline iterator begin() const noexcept { return subComponents.begin(); }
inline iterator begin() noexcept { return subComponents.begin(); }
inline constant_iterator cbegin() const noexcept { return subComponents.cbegin(); }
inline iterator end() const noexcept { return subComponents.end(); }
inline iterator end() noexcept { return subComponents.end(); }
inline constant_iterator cend() const noexcept { return subComponents.cend(); }
IS_PARSECOMPONENT
vector<T*> findById() const {