Updates will be applied on October 27th between 12pm - 12:45pm EDT (UTC-0400). Gitlab may be slow during the maintenance window.

Commit 2b29e101 authored by Brad King's avatar Brad King
Browse files

ENH: Added "ostringstream(const kwsys_stl::string& s)" and "void str(const...

ENH: Added "ostringstream(const kwsys_stl::string& s)" and "void str(const kwsys_stl::string& s)" compatibility methods.
parent 30a72c20
......@@ -83,6 +83,7 @@ class ostringstream: public ostrstream
typedef ostrstream Superclass;
ostringstream() {}
ostringstream(const kwsys_stl::string& s) { *this << s.c_str(); }
kwsys_stl::string str()
ostringstream_cleanup cleanup(*this);
......@@ -91,6 +92,11 @@ public:
const char* ptr = this->Superclass::str();
return kwsys_stl::string(ptr?ptr:"", pcount);
void str(const kwsys_stl::string& s)
new (this) ostringstream(s);
ostringstream(const ostringstream&);
void operator=(const ostringstream&);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment