summaryrefslogtreecommitdiffstats
path: root/Source/cmStandardIncludes.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-07 15:11:40 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-07 15:11:40 (GMT)
commitf71a085f74e4b21f3b666c71557534b7603604dd (patch)
tree2e6d761774d8c04dc34b7795b8567fe85c68aea6 /Source/cmStandardIncludes.h
parent4763c145021e4cb481f1c44e6d74d7dcc79b71d3 (diff)
downloadCMake-f71a085f74e4b21f3b666c71557534b7603604dd.zip
CMake-f71a085f74e4b21f3b666c71557534b7603604dd.tar.gz
CMake-f71a085f74e4b21f3b666c71557534b7603604dd.tar.bz2
ENH: Added kwsys::String class to shorten debugging symbols and error messages involving std::string.
Diffstat (limited to 'Source/cmStandardIncludes.h')
-rw-r--r--Source/cmStandardIncludes.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/Source/cmStandardIncludes.h b/Source/cmStandardIncludes.h
index e18fff6..1dfe4b1 100644
--- a/Source/cmStandardIncludes.h
+++ b/Source/cmStandardIncludes.h
@@ -212,26 +212,8 @@ inline bool operator==(std::string const& a, const char* b)
// use this class to shrink the size of symbols in .o files
// std::string is really basic_string<....lots of stuff....>
// when combined with a map or set, the symbols can be > 2000 chars!
-struct cmStdString : public std::string
-{
- typedef std::string StdString;
- typedef StdString::value_type value_type;
- typedef StdString::pointer pointer;
- typedef StdString::reference reference;
- typedef StdString::const_reference const_reference;
- typedef StdString::size_type size_type;
- typedef StdString::difference_type difference_type;
- typedef StdString::iterator iterator;
- typedef StdString::const_iterator const_iterator;
- typedef StdString::reverse_iterator reverse_iterator;
- typedef StdString::const_reverse_iterator const_reverse_iterator;
-
- cmStdString(): StdString() {}
- cmStdString(const value_type* s): StdString(s) {}
- cmStdString(const value_type* s, size_type n): StdString(s, n) {}
- cmStdString(const StdString& s, size_type pos=0, size_type n=npos):
- StdString(s, pos, n) {}
-};
+#include <cmsys/String.hxx>
+typedef cmsys::String cmStdString;
// Define cmOStringStream and cmIStringStream wrappers to hide
// differences between std::stringstream and the old strstream.