I'm getting a compile error when passing a function with 6 parameters or more to QtConcurrent::run()
. When I reduce them to 5 parameters, I no longer get this error.
This dummy code reproduces the error for me:
void foo(int, int, int, int, int, int)
{
}
QtConcurrent::run(foo, 1, 2, 3, 4, 5, 6);
The compiler error is:
error: no matching function for call to 'run(void (&)(int, int, int, int, int, int), int, int, int, int, int, int)'
Is this supposed to be so? Is QtConcurrent::run()
really limited to 5 arguments at most?