From f26338547149ba7503d406c46322c8bfcf77468f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 11 Aug 2020 12:02:12 +0300 Subject: [PATCH] QCache: Fix the usage of std::is_nothrow_assignable_v The std::is_nothrow_assignable_v template takes two template parameters. Current clang nightly errors out on the previous code, while earlier versions, and GCC, fail to diagnose the missing template parameter. Change-Id: I8ae7d5b9a9e89c5579e5526fb29d4da5cd1ab859 Reviewed-by: Fabian Kosmale --- src/corelib/tools/qcache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/tools/qcache.h b/src/corelib/tools/qcache.h index ac7760be0b..fbfa2ab997 100644 --- a/src/corelib/tools/qcache.h +++ b/src/corelib/tools/qcache.h @@ -111,7 +111,7 @@ class QCache { return Node(k, std::move(t)); } - void replace(const Value &t) noexcept(std::is_nothrow_assignable_v) + void replace(const Value &t) noexcept(std::is_nothrow_assignable_v) { value = t; }