INTERFACE: #include #include class Sstring { std::ostringstream out; public: operator std::string () { return out.str(); } std::string str () const { return out.str(); } template Sstring& operator << (const T& value) { out << value; return *this; } }; IMPLEMENTATION: