istream and string is in the std namespace. You need to quality the type with the std namespace. TokenType ...
stackoverflow.com