in this code i am trying to intilize this struct :
struct Token{
TokenType type;//TokenType is an enum
const std::string& value;
int line;
};
just like that :
Token makeToken(TokenType type){
Token token{type,std::string(start,current),line};//start and current are char pointers
return token;
}
``` but the debbuger is showing me that type (the argument) is 19 and line is 1
But for some reason the line and type (and value) of the token variable is some random numbers