Remove a useless constructor in the ParseTree class
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
63b3d727a6
commit
b5ff43e109
|
@ -97,11 +97,6 @@ public:
|
||||||
ParseTree(): subComponents() {};
|
ParseTree(): subComponents() {};
|
||||||
IS_PARSECOMPONENT constexpr explicit ParseTree(const T& element): ParseTree() { addComponent(element); }
|
IS_PARSECOMPONENT constexpr explicit ParseTree(const T& element): ParseTree() { addComponent(element); }
|
||||||
IS_PARSECOMPONENT constexpr ParseTree(const initializer_list<T>& elements): ParseTree() { addAllComponents(elements); }
|
IS_PARSECOMPONENT constexpr ParseTree(const initializer_list<T>& elements): ParseTree() { addAllComponents(elements); }
|
||||||
ParseTree(const initializer_list<ParseComponent*>& elements): ParseTree() {
|
|
||||||
for_each(elements.begin(), elements.end(), [&](ParseComponent* component){
|
|
||||||
subComponents.emplace_back(component);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
#undef IS_PARSECOMPONENT
|
#undef IS_PARSECOMPONENT
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue