diff options
author | Brad King <brad.king@kitware.com> | 2005-03-29 15:10:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-03-29 15:10:25 (GMT) |
commit | 65f1e3e1d8a69a9af7744034123fab36c356db1e (patch) | |
tree | 874504a014ab095148695ebafacc5462c2a697d6 /Source/kwsys/kwsysPlatformCxxTests.cxx | |
parent | 22f6d68be3e6630b21bb17de63273965de44ee45 (diff) | |
download | CMake-65f1e3e1d8a69a9af7744034123fab36c356db1e.zip CMake-65f1e3e1d8a69a9af7744034123fab36c356db1e.tar.gz CMake-65f1e3e1d8a69a9af7744034123fab36c356db1e.tar.bz2 |
ENH: Added operator!= for stl string and char* when the system does not provide one.
Diffstat (limited to 'Source/kwsys/kwsysPlatformCxxTests.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformCxxTests.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformCxxTests.cxx b/Source/kwsys/kwsysPlatformCxxTests.cxx index d8454fd..5d24766 100644 --- a/Source/kwsys/kwsysPlatformCxxTests.cxx +++ b/Source/kwsys/kwsysPlatformCxxTests.cxx @@ -54,6 +54,17 @@ void f(istream& is, kwsys_stl::string& s) { is >> s; } int main() { return 0; } #endif +#ifdef TEST_KWSYS_STL_STRING_HAVE_NEQ_CHAR +# if KWSYS_STL_HAVE_STD +# define kwsys_stl std +# else +# define kwsys_stl +# endif +# include <string> +bool f(const kwsys_stl::string& s) { return s != ""; } +int main() { return 0; } +#endif + #ifdef TEST_KWSYS_STAT_HAS_ST_MTIM #include <sys/types.h> #include <sys/stat.h> |