wstringstream assign operation

Started by
0 comments, last by fastcall22 14 years ago
Hi, can anyone tell me why below function doesn' work? void Write(std::wstringstream wssText) { m_pSCurrentWindow->wssText.rdbuf(wssText.rdbuf()); } I want to append one stringstream to another, or atleast replace first with second. Any help would be appreaceated, Martin
Advertisement
Quote:Original post by Marusu
I want to append one stringstream to another


wstringstream ss1, ss2;// Append ss2 onto ss1ss1 << ss2.str();


Quote:
or atleast replace first with second.


wstringstream ss1, ss2;// Copy ss2 to ss1ss1.str( ss2.str() ); 

This topic is closed to new replies.

Advertisement