Changed ostream to the basic type std::basic_ostream<char>