diff --git a/cclox_src/token.hh b/cclox_src/token.hh index 16d86d2..f303749 100644 --- a/cclox_src/token.hh +++ b/cclox_src/token.hh @@ -3,6 +3,7 @@ #include "object.hh" #include #include +#include enum class TokenType : uint8_t { // Single-character tokens. @@ -31,7 +32,7 @@ struct Token { {}; TokenType type; - std::string lexeme; + std::string_view lexeme; Object literal; int line; };