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
parent
a5b00cefef
commit
111c08d0ea
|
|
@ -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…
Reference in New Issue