mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-13 01:29:02 -05:00
KWSys: Fix std::string hash function for Borland
Borland ignores "const" qualifiers in template specializations.
This commit is contained 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> {
|
||||
|
||||
Reference in New Issue
Block a user