mirror of
https://github.com/stefanocasazza/ULib.git
synced 2025-09-28 19:05:55 +08:00
fix
This commit is contained in:
parent
693394d6e4
commit
79f12067ac
|
@ -2844,7 +2844,7 @@ template <> inline uint32_t UObject2String<UString>(UString& object, char* pbuff
|
||||||
#if defined(U_STDCPP_ENABLE) && defined(HAVE_CXX11)
|
#if defined(U_STDCPP_ENABLE) && defined(HAVE_CXX11)
|
||||||
namespace std {
|
namespace std {
|
||||||
template<> struct hash<UString> {
|
template<> struct hash<UString> {
|
||||||
std::size_t operator()(UString const& str) const noexcept { return std::hash<char *>()(str.c_str()); }
|
std::size_t operator()(const UString& str) const noexcept { return str.hash(); } };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user