   wstringstream assign operation
  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   
Quote:Original post by MarusuI want to append one stringstream to anotherwstringstream 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() ); 