ERR: cmStringStream is taking the functionality of ostringstream and ostrstream, not stringstream and strstream.
This commit is contained in:
parent
17e3d6c784
commit
159338bcf8
@ -152,7 +152,7 @@ struct cmStdString : public std::string
|
|||||||
// Define cmStringStream wrapper to hide differences between
|
// Define cmStringStream wrapper to hide differences between
|
||||||
// std::stringstream and the old strstream.
|
// std::stringstream and the old strstream.
|
||||||
#if !defined(CMAKE_NO_ANSI_STRING_STREAM)
|
#if !defined(CMAKE_NO_ANSI_STRING_STREAM)
|
||||||
class cmStringStream: public std::stringstream
|
class cmStringStream: public std::ostringstream
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmStringStream() {}
|
cmStringStream() {}
|
||||||
@ -164,17 +164,17 @@ private:
|
|||||||
class cmStrStreamCleanup
|
class cmStrStreamCleanup
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmStrStreamCleanup(std::strstream& ostr): m_StrStream(ostr) {}
|
cmStrStreamCleanup(std::ostrstream& ostr): m_StrStream(ostr) {}
|
||||||
~cmStrStreamCleanup() { m_StrStream.rdbuf()->freeze(0); }
|
~cmStrStreamCleanup() { m_StrStream.rdbuf()->freeze(0); }
|
||||||
static void IgnoreUnusedVariable(const cmStrStreamCleanup&) {}
|
static void IgnoreUnusedVariable(const cmStrStreamCleanup&) {}
|
||||||
protected:
|
protected:
|
||||||
std::strstream& m_StrStream;
|
std::ostrstream& m_StrStream;
|
||||||
};
|
};
|
||||||
|
|
||||||
class cmStringStream: public std::strstream
|
class cmStringStream: public std::ostrstream
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::strstream Superclass;
|
typedef std::ostrstream Superclass;
|
||||||
cmStringStream() {}
|
cmStringStream() {}
|
||||||
std::string str()
|
std::string str()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user