diff --git a/include/snipplib/containers/snplib_hmap.h b/include/snipplib/containers/snplib_hmap.h index e4d0097..de6ad55 100644 --- a/include/snipplib/containers/snplib_hmap.h +++ b/include/snipplib/containers/snplib_hmap.h @@ -663,7 +663,9 @@ public: using u_t = std::invoke_result_t::value_type; // user type must differ from inserted one - static_assert(!std::same_as, "INVALID CONVERSIONAL 'FROM-FUNCTION' SIGNATURE!"); + if constexpr (std::same_as) { // just ignore the such type + return; + } _getter[this].emplace( kk,