Skip to content

Commit

Permalink
assume boost::hash_value takes const T&
Browse files Browse the repository at this point in the history
  • Loading branch information
evaleev committed Feb 14, 2024
1 parent 9f87160 commit 074dc6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions SeQuant/core/hash.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ template <typename T, typename = std::void_t<>>
struct has_boost_hash_value : std::false_type {};

template <typename T>
struct has_boost_hash_value<
T, std::void_t<decltype(sequant_boost::hash_value(std::declval<T>()))>>
struct has_boost_hash_value<T, std::void_t<decltype(sequant_boost::hash_value(
std::declval<const T&>()))>>
: std::true_type {};

template <typename T, typename = std::void_t<>>
Expand Down

0 comments on commit 074dc6a

Please sign in to comment.