1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00
This commit is contained in:
stefanocasazza 2019-09-17 19:41:19 +02:00
parent 693394d6e4
commit 79f12067ac

View File

@ -2844,7 +2844,7 @@ template <> inline uint32_t UObject2String<UString>(UString& object, char* pbuff
#if defined(U_STDCPP_ENABLE) && defined(HAVE_CXX11)
namespace std {
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