diff --git a/src/headers/parsing/ParseComponents.hpp b/src/headers/parsing/ParseComponents.hpp index 6c71c66..87be37f 100644 --- a/src/headers/parsing/ParseComponents.hpp +++ b/src/headers/parsing/ParseComponents.hpp @@ -22,7 +22,7 @@ public: auto& getComponents() const { return subComponents; } void add(const ParseComponent& component) { addComp(component); }; void addAll(const vector& components) { addAllComps(components); } - void operator<<(const ParseComponent& component) { addComp(component); } + void operator<<(const ParseComponent& component) { add(component); } explicit ParseTree(const ParseComponent& element): subComponents() { addComp(element); } ParseTree(const initializer_list& elements): subComponents() { addAllComps(elements); } ParseTree(): subComponents() {};