Added constructor to initialize all members.

This commit is contained in:
Mark de Wever 2008-06-22 11:25:02 +00:00
parent c37806cbcd
commit 5b5d149057

View File

@ -31,6 +31,14 @@ enum TOKEN_TYPE { TOKEN_OPERATOR, TOKEN_STRING_LITERAL,
TOKEN_COMMENT, TOKEN_POINTER };
struct token {
token() :
type(TOKEN_COMMENT),
begin(),
end()
{
}
TOKEN_TYPE type;
iterator begin, end;
};