diff options
author | Marc Mutz <marc.mutz@qt.io> | 2023-12-15 16:47:15 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@qt.io> | 2023-12-16 09:43:50 +0100 |
commit | 41c41b4ba58ee4a7d5f66d8f03d40b8631ba7547 (patch) | |
tree | 0c02ff961db3da6add4173db890fc8771d7ca00a | |
parent | 0d0cd1fe2c4f2d90a8184ce88383bdf1ff35b338 (diff) |
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.7 6.6 6.5
Change-Id: Idae4962834f14e2a5273099b5611ebcbb2a54447
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/corelib/global/qxpfunctional.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/global/qxpfunctional.h b/src/corelib/global/qxpfunctional.h index 24e74daaea..cbeef8b293 100644 --- a/src/corelib/global/qxpfunctional.h +++ b/src/corelib/global/qxpfunctional.h @@ -184,7 +184,7 @@ QT_SPECIALIZE_FUNCTION_REF(const, true ); template < class F, - std::enable_if_t<std::is_function_v<F>, bool> = true + detail::if_function<F> = true > function_ref(F*) -> function_ref<F>; |