Inline the `<<` operator in ParseComponents.hpp

This commit is contained in:
Username404 2021-08-14 10:45:13 +02:00
parent d6de61df99
commit a3cdf22000
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public:
for (const auto& comp: components) add<T>(comp); for (const auto& comp: components) add<T>(comp);
} }
IS_PARSECOMPONENT IS_PARSECOMPONENT
const ParseTree& operator<<(const T& component) const { add(component); return *this; } inline const ParseTree& operator<<(const T& component) const { add(component); return *this; }
ParseTree(): subComponents() {}; ParseTree(): subComponents() {};
IS_PARSECOMPONENT IS_PARSECOMPONENT
explicit ParseTree(const T& element): ParseTree() { add(element); } explicit ParseTree(const T& element): ParseTree() { add(element); }