From 32a9c2b0d1c23bfdb4c7a5a84b6e2c59d52adee1 Mon Sep 17 00:00:00 2001 From: Username404 Date: Sat, 27 Mar 2021 11:13:11 +0100 Subject: [PATCH] Make the "<<" operator call the right function in the ParseTree class. --- src/headers/parsing/ParseComponents.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() {};