Skip to content

Commit

Permalink
fix tuple hashing: add decay_t
Browse files Browse the repository at this point in the history
  • Loading branch information
felixguendling committed Oct 29, 2024
1 parent 0850433 commit e3d4159
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cista/hashing.h
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ struct hashing<std::tuple<Args...>> {
hash_t h = seed;
std::apply(
[&h](auto&&... args) {
((h = hashing<decltype(args)>{}(args, h)), ...);
((h = hashing<std::decay_t<decltype(args)>>{}(args, h)), ...);
},
el);
return h;
Expand Down

0 comments on commit e3d4159

Please sign in to comment.