stringstream::rdbuf
doesn't have an overload that takes a parameter. It does, however, inherit the base class version which does have this property:
iss.basic_ios<char>::rdbuf(oss.rdbuf());
The fact that you couldn't use it originally is because the derived class version hides it.