QFutureInterface: fix build with GCC14/C++20: template-id not allowed
When declaring a constructor, you must use the injected name, not a template. qfutureinterface.h:472:37: error: template-id not allowed for constructor in C++20 [-Werror=template-id-cdtor] Pick-to: 6.6 Change-Id: I6818d78a57394e37857bfffd17bbbf2313001cbf Reviewed-by: Ahmad Samir <a.samirh78@gmail.com> (cherry picked from commit 111c08d0eaa134652f1f1e602ead1a539614258f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
9a59f6bc57
commit
af41847af5
@ -469,7 +469,7 @@ template <>
|
||||
class QFutureInterface<void> : public QFutureInterfaceBase
|
||||
{
|
||||
public:
|
||||
explicit QFutureInterface<void>(State initialState = NoState)
|
||||
explicit QFutureInterface(State initialState = NoState)
|
||||
: QFutureInterfaceBase(initialState)
|
||||
{ }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user