Skip to content
Snippets Groups Projects
Commit c7f139c9 authored by Brad King's avatar Brad King
Browse files

KWSys: Fix std::string hash function for Borland

Borland ignores "const" qualifiers in template specializations.
parent 2b3f799f
No related branches found
No related tags found
No related merge requests found
......@@ -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> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment