From f2b4adebd40c56243bc6f042bc7f46e800c12423 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 Pick-to: 6.4 Fixes: QTBUG-107043 Reviewed-by: Edward Welbourne --- 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 2e617d7c91c..2db9ed2dbc4 100644 --- a/src/corelib/time/qdatetime.h +++ b/src/corelib/time/qdatetime.h @@ -458,7 +458,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