Parser.hpp: Make sure the T typename propagates to the function call in the parse overload

Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
Username404 2022-07-08 11:06:16 +02:00
parent ac4df6d090
commit bd48d270be
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ namespace Parser {
return parseTree;
}
template<derived_from<ParseTree> T>
inline T parse(const input_iterator auto& begin, const input_iterator auto& end) { return parse(span(begin, end)); }
inline T parse(const input_iterator auto& begin, const input_iterator auto& end) { return parse<T>(span(begin, end)); }
}
#endif //YERBACON_PARSER_HPP