Skip to content

Commit 43bcc15

Browse files
feat: Enhance hash module with additional type constraints for improved hashing functionality
Signed-off-by: FrozenlemonTee <1115306170@qq.com>
1 parent 314b19a commit 43bcc15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/algorithms/hash.cppm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ struct hash<T> {
5555

5656
template <underlying_type T>
5757
requires (!details::std_hashable<T> &&
58+
!std::same_as<std::remove_cv_t<T>,
59+
typename underlying::traits<std::remove_cv_t<T>>::rep_type> &&
5860
hash<typename underlying::traits<std::remove_cv_t<T>>::rep_type>::enabled)
5961
struct hash<T> {
6062
using value_type = std::remove_cv_t<T>;

0 commit comments

Comments
 (0)