• Advertisement
Sign in to follow this  

wstringstream assign operation

This topic is 2857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement