diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-01-05 19:30:33 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-01-08 21:10:15 (GMT) |
commit | f194a009c8efeb6f2fd1f212dee678c54d4ef48d (patch) | |
tree | 87601ecdaef72ea266a612f88521bbb3c1fab615 /Source | |
parent | 3ec1bb1537c41f58da2dc6715e4964a38d1b1043 (diff) | |
download | CMake-f194a009c8efeb6f2fd1f212dee678c54d4ef48d.zip CMake-f194a009c8efeb6f2fd1f212dee678c54d4ef48d.tar.gz CMake-f194a009c8efeb6f2fd1f212dee678c54d4ef48d.tar.bz2 |
Remove unused cmIStringStream class.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmStandardIncludes.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h index 36f2535..df031b9 100644 --- a/Source/cmStandardIncludes.h +++ b/Source/cmStandardIncludes.h @@ -109,16 +109,6 @@ private: cmOStringStream(const cmOStringStream&); void operator=(const cmOStringStream&); }; -class cmIStringStream: public std::istringstream -{ -public: - typedef std::istringstream Superclass; - cmIStringStream() {} - cmIStringStream(const std::string& s): Superclass(s) {} -private: - cmIStringStream(const cmIStringStream&); - void operator=(const cmIStringStream&); -}; #else class cmOStrStreamCleanup { @@ -147,27 +137,6 @@ private: cmOStringStream(const cmOStringStream&); void operator=(const cmOStringStream&); }; - -class cmIStringStream: private std::string, public std::istrstream -{ -public: - typedef std::string StdString; - typedef std::istrstream IStrStream; - cmIStringStream(): StdString(), IStrStream(StdString::c_str()) {} - cmIStringStream(const std::string& s): - StdString(s), IStrStream(StdString::c_str()) {} - std::string str() const { return *this; } - void str(const std::string& s) - { - // Very dangerous. If this throws, the object is hosed. When the - // destructor is later called, the program is hosed too. - this->~cmIStringStream(); - new (this) cmIStringStream(s); - } -private: - cmIStringStream(const cmIStringStream&); - void operator=(const cmIStringStream&); -}; #endif /* Poison this operator to avoid common mistakes. */ |