Fix error: no matching function for call to ‘std::basic_istream<char>::basic_istream(std::string*)’