diff options
author | Brad King <brad.king@kitware.com> | 2011-09-01 12:20:43 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-09-01 12:22:03 (GMT) |
commit | 89f420abdefd387ec600e958f4aef15295b9daa4 (patch) | |
tree | 061bf1f4edb63b741657acfb4b8c0598e93e2288 /Source/kwsys/hash_fun.hxx.in | |
parent | 8e6352f8dbeedff1f529a800173b19d52ff69b6b (diff) | |
download | CMake-89f420abdefd387ec600e958f4aef15295b9daa4.zip CMake-89f420abdefd387ec600e958f4aef15295b9daa4.tar.gz CMake-89f420abdefd387ec600e958f4aef15295b9daa4.tar.bz2 |
KWSys: Fix std::string hash function for Borland
Borland ignores "const" qualifiers in template specializations.
Diffstat (limited to 'Source/kwsys/hash_fun.hxx.in')
-rw-r--r-- | Source/kwsys/hash_fun.hxx.in | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/kwsys/hash_fun.hxx.in b/Source/kwsys/hash_fun.hxx.in index 2a1305e..8c5eb6a 100644 --- a/Source/kwsys/hash_fun.hxx.in +++ b/Source/kwsys/hash_fun.hxx.in @@ -71,10 +71,12 @@ struct hash<const char*> { size_t operator()(const @KWSYS_NAMESPACE@_stl::string & __s) const { return _stl_hash_string(__s.c_str()); } }; +#if !defined(__BORLANDC__) @KWSYS_NAMESPACE@_CXX_DEFINE_SPECIALIZATION struct hash<const @KWSYS_NAMESPACE@_stl::string> { size_t operator()(const @KWSYS_NAMESPACE@_stl::string & __s) const { return _stl_hash_string(__s.c_str()); } }; +#endif @KWSYS_NAMESPACE@_CXX_DEFINE_SPECIALIZATION struct hash<char> { |