summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2002-06-20 14:20:44 (GMT)
committerBrad King <brad.king@kitware.com>2002-06-20 14:20:44 (GMT)
commit159338bcf89fdeb01549af36e2694b813c6a6de2 (patch)
tree53cfadf5471a7ada33adc066b035118bffceac48 /Source/cmStandardIncludes.h
parent17e3d6c7848eed06a6ada4126ea7e89768a6bd6d (diff)
downloadCMake-159338bcf89fdeb01549af36e2694b813c6a6de2.zip
CMake-159338bcf89fdeb01549af36e2694b813c6a6de2.tar.gz
CMake-159338bcf89fdeb01549af36e2694b813c6a6de2.tar.bz2
ERR: cmStringStream is taking the functionality of ostringstream and ostrstream, not stringstream and strstream.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index 629f9c0..0563d3c 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -152,7 +152,7 @@ struct cmStdString : public std::string
// Define cmStringStream wrapper to hide differences between
// std::stringstream and the old strstream.
#if !defined(CMAKE_NO_ANSI_STRING_STREAM)
-class cmStringStream: public std::stringstream
+class cmStringStream: public std::ostringstream
{
public:
cmStringStream() {}
@@ -164,17 +164,17 @@ private:
class cmStrStreamCleanup
{
public:
- cmStrStreamCleanup(std::strstream& ostr): m_StrStream(ostr) {}
+ cmStrStreamCleanup(std::ostrstream& ostr): m_StrStream(ostr) {}
~cmStrStreamCleanup() { m_StrStream.rdbuf()->freeze(0); }
static void IgnoreUnusedVariable(const cmStrStreamCleanup&) {}
protected:
- std::strstream& m_StrStream;
+ std::ostrstream& m_StrStream;
};
-class cmStringStream: public std::strstream
+class cmStringStream: public std::ostrstream
{
public:
- typedef std::strstream Superclass;
+ typedef std::ostrstream Superclass;
cmStringStream() {}
std::string str()
{