diff --git a/include/cpp2util.h b/include/cpp2util.h index 03fe321483..68561490bc 100644 --- a/include/cpp2util.h +++ b/include/cpp2util.h @@ -491,9 +491,13 @@ template // //----------------------------------------------------------------------- // +template +constexpr bool prefer_pass_by_value = false; + template -constexpr bool prefer_pass_by_value = - sizeof(T) < 2*sizeof(void*) && std::is_trivially_copy_constructible_v; +constexpr bool prefer_pass_by_value> = + sizeof(T) < 2*sizeof(void*) + && std::is_trivially_copy_constructible_v; template using in =