summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-10 12:11:05 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-10-10 12:11:05 (GMT)
commit089429fee9142fce0890801235fd2f5d1fc3275d (patch)
treec745ff37e92c5b9cbacc5119eaa4a68b2fb846e7 /Source/cmStandardIncludes.h
parentcceb68f2a09160f90d2a908b862c05a006a9c76f (diff)
downloadCMake-089429fee9142fce0890801235fd2f5d1fc3275d.zip
CMake-089429fee9142fce0890801235fd2f5d1fc3275d.tar.gz
CMake-089429fee9142fce0890801235fd2f5d1fc3275d.tar.bz2
Try to use platform independent input string stream
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index b0d391f..22bb4bf 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -173,6 +173,15 @@ private:
cmStringStream(const cmStringStream&);
void operator=(const cmStringStream&);
};
+class cmInputStringStream: public std::istringstream
+{
+public:
+ cmInputStringStream() {}
+ cmInputStringStream(const char* c) : std::istringstream(c) {}
+private:
+ cmInputStringStream(const cmInputStringStream&);
+ void operator=(const cmInputStringStream&);
+};
#else
class cmStrStreamCleanup
{
@@ -201,6 +210,16 @@ private:
cmStringStream(const cmStringStream&);
void operator=(const cmStringStream&);
};
+class cmInputStringStream: public std::istrstream
+{
+public:
+ typedef std::istrstream Superclass;
+ cmInputStringStream(const char* c) : Superclass(c) {}
+private:
+ cmInputStringStream(const cmInputStringStream&);
+ void operator=(const cmInputStringStream&);
+};
#endif
+
#endif