From cfbebed8956f684b3f652dcee29079db8549181b Mon Sep 17 00:00:00 2001 From: Username404 Date: Sun, 26 Dec 2021 14:53:37 +0100 Subject: [PATCH] Remove a useless constructor in lex.hpp --- src/headers/lex.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/headers/lex.hpp b/src/headers/lex.hpp index 5279a74..c2eb211 100644 --- a/src/headers/lex.hpp +++ b/src/headers/lex.hpp @@ -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 lex(const std::string& in);