How can I concatenate two stringstreams?
#include #include #include #include #include <
You don't need two instance of std::stringstream. One is enough for the purpose.
std::stringstream
std::stringstream a; a << source << dest; std::string s = a.str(); //get the underlying string