From 7e476f5c483e32bf88dba49d5245e8c9c4612776 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Wed, 28 Sep 2022 18:14:44 +0200 Subject: [PATCH] QDateTime: specify a class template argument Although the code is legal in C++20 (due to the new CTAD rules for alias templates), clang-cl errors out on it. Just specify the template parameter, which we know anyways. Change-Id: Ifdea31853d4281601cf40ed8adeb14e493a5ce04 Fixes: QTBUG-107043 Reviewed-by: Edward Welbourne (cherry picked from commit f2b4adebd40c56243bc6f042bc7f46e800c12423) Reviewed-by: Qt Cherry-pick Bot --- src/corelib/time/qdatetime.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/time/qdatetime.h b/src/corelib/time/qdatetime.h index 11ece5435a7..1fb401ebe92 100644 --- a/src/corelib/time/qdatetime.h +++ b/src/corelib/time/qdatetime.h @@ -455,7 +455,7 @@ public: std::chrono::sys_time toStdSysMilliseconds() const { const std::chrono::milliseconds duration(toMSecsSinceEpoch()); - return std::chrono::sys_time(duration); + return std::chrono::sys_time(duration); } QT_POST_CXX17_API_IN_EXPORTED_CLASS