Sign in to follow this  
Marusu

wstringstream assign operation

Recommended Posts

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

Share this post


Link to post
Share on other sites
Quote:
Original post by Marusu
I want to append one stringstream to another



wstringstream ss1, ss2;

// Append ss2 onto ss1
ss1 << ss2.str();



Quote:

or atleast replace first with second.



wstringstream ss1, ss2;

// Copy ss2 to ss1
ss1.str( ss2.str() );

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this