Remove the tok default constructor in lex.hpp
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
		
							parent
							
								
									6955c5cb4d
								
							
						
					
					
						commit
						33e29ccb8e
					
				| @ -23,7 +23,7 @@ struct tok { | ||||
|     type toktype; | ||||
|     std::string toktext; | ||||
|     unsigned long line; | ||||
|     tok(): toktype(UNEXPECTED), toktext(), line(0) {}; | ||||
|     tok() = delete; | ||||
|     tok(const type& Type, std::string_view Text, const decltype(line)& line = 0): toktype(Type), toktext(Text), line(line) {} | ||||
|     explicit tok(const type& Type, const decltype(line)& line = 0): tok(Type, std::string(1, Type), line) {}; | ||||
|     friend std::ostream& operator<<(std::ostream& output, const tok& it) { return output << it.toktext; } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user