From 89f420abdefd387ec600e958f4aef15295b9daa4 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 1 Sep 2011 08:20:43 -0400 Subject: KWSys: Fix std::string hash function for Borland Borland ignores "const" qualifiers in template specializations. --- Source/kwsys/hash_fun.hxx.in | 2 ++ 1 file changed, 2 insertions(+) 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 { 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 { 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 { -- cgit v0.12