KWSys: Fix std::string hash function for Borland

Borland ignores "const" qualifiers in template specializations.
This commit is contained in:
Brad King 2011-09-01 08:20:43 -04:00
parent 8e6352f8db
commit 89f420abde
1 changed files with 2 additions and 0 deletions

View File

@ -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> {