diff --git a/src/ds/helpers.h b/src/ds/helpers.h index 00159f8..c2f2ead 100644 --- a/src/ds/helpers.h +++ b/src/ds/helpers.h @@ -120,8 +120,9 @@ namespace snmalloc // copy / move constructors. template< typename Fn, - typename = std::enable_if_t< - !std::is_same_v, function_ref>> function_ref(Fn&& fn) + typename = + std::enable_if_t, function_ref>>> + function_ref(Fn&& fn) { data_ = static_cast(&fn); fn_ = execute;