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.
Sounds like you are trying to copy a stream. This is not possible as the copy constructors are private.