We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5939a5e commit 152b3dcCopy full SHA for 152b3dc
libcxx/include/__chrono/day.h
@@ -98,9 +98,7 @@ _LIBCPP_HIDE_FROM_ABI inline constexpr day& day::operator-=(const days& __dd) no
98
99
template <>
100
struct hash<chrono::day> {
101
- _LIBCPP_HIDE_FROM_ABI static size_t operator()(const chrono::day& __d) noexcept {
102
- return hash<unsigned>{}(static_cast<unsigned>(__d));
103
- }
+ _LIBCPP_HIDE_FROM_ABI static size_t operator()(const chrono::day& __d) noexcept { return static_cast<unsigned>(__d); }
104
};
105
106
# endif // _LIBCPP_STD_VER >= 26
0 commit comments