From b8a8367e5fcde8a119ea00962bb2154631c6193c Mon Sep 17 00:00:00 2001 From: Marc Mutz Date: Fri, 15 Dec 2023 16:47:15 +0100 Subject: [PATCH] qxp::function_ref: reuse a constraint for the deduction guide No functional change, just using the already-existing named constraint instead of more enable_if fiddling. Amends 29b65c98e720056e87334ce88a683969e57efd3d. Pick-to: 6.5 Change-Id: Idae4962834f14e2a5273099b5611ebcbb2a54447 Reviewed-by: Thiago Macieira Reviewed-by: Fabian Kosmale (cherry picked from commit 41c41b4ba58ee4a7d5f66d8f03d40b8631ba7547) Reviewed-by: Qt Cherry-pick Bot (cherry picked from commit 672448c712ba7cfba41100ad79416cfd6de5756f) --- src/corelib/global/qxpfunctional.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/global/qxpfunctional.h b/src/corelib/global/qxpfunctional.h index 60508f6315c..cc2942b1c6a 100644 --- a/src/corelib/global/qxpfunctional.h +++ b/src/corelib/global/qxpfunctional.h @@ -182,7 +182,7 @@ QT_SPECIALIZE_FUNCTION_REF(const, true ); template < class F, - std::enable_if_t, bool> = true + detail::if_function = true > function_ref(F*) -> function_ref;