std::string str;
std::stringstream strm(str);
I get this error:
Error 11 error C2248: 'std::basic_ios<_Elem,_Traits>::basic_ios' : cannot access private member declared in class 'std::basic_ios<_Elem,_Traits>' c:\program files\microsoft visual studio 9.0\vc\include\sstream 517
If I use istringstream, same happens.
Compiler: Visual C++ 2008.