From f8c5f8dbade27b680754dc3524dd6cf126a8cf49 Mon Sep 17 00:00:00 2001 From: "Timur A. Fatkhullin" Date: Tue, 8 Sep 2026 09:15:43 +0300 Subject: [PATCH] ... --- include/snipplib/containers/snplib_hmap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,