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 6.7
Change-Id: I6818d78a57394e37857bfffd17bbbf2313001cbf
Reviewed-by: Ahmad Samir <a.samirh78@gmail.com>
bb10
Thiago Macieira 2024-03-11 11:24:00 -04:00
parent a5b00cefef
commit 111c08d0ea
1 changed files with 1 additions and 1 deletions

View File

@ -469,7 +469,7 @@ template <>
class QFutureInterface<void> : public QFutureInterfaceBase
{
public:
explicit QFutureInterface<void>(State initialState = NoState)
explicit QFutureInterface(State initialState = NoState)
: QFutureInterfaceBase(initialState)
{ }