Remove a useless constructor in lex.hpp

This commit is contained in:
Username404 2021-12-26 14:53:37 +01:00
parent f2322ea1bf
commit cfbebed895
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 2 deletions

View File

@ -21,8 +21,7 @@ struct tok {
const std::string toktext;
const unsigned long line = 0;
tok(type Type, std::string_view Text, decltype(line) line): toktype(Type), toktext(Text), line(line) {}
explicit tok(type Type, const char& character, decltype(line) line): tok(Type, std::string(1, character), line) {};
inline tok(type Type, decltype(line) line): tok(Type, Type, line) {};
explicit tok(type Type, decltype(line) line): tok(Type, std::string(1, Type), line) {};
friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; }
};
std::vector<tok> lex(const std::string& in);