Qt Code:
  1. QStringList PaltUnit::dayMap(QStringList s)
  2. {
  3. ......
  4. }
  5.  
  6. void PaltUnit:upReduce(QStringList &res,QStringList s)
  7. {
  8. ......
  9. }
  10.  
  11. QStringList PaltUnit::solutionPick()
  12. {
  13. QVector<QStringList> vec;
  14.  
  15. vec = divStockData(DIVIDEDAYS);
  16.  
  17. QFuture<QStringList> res = QtConcurrent::mappedReduced<QStringList>(vec, dayMap, upReduce);
  18.  
  19. return res;
  20. }
To copy to clipboard, switch view to plain text mode 

the buildissues will show : argument of type 'QStringList(PaltUnit::*)(QStringList)' does not match 'QStringList(PaltUnit::*)(QStringList)' ï¼›
QStringList(PaltUnit::*)(QStringList) is not a class,struct, or union type

If I made "dayMap" and "upReduce" to be globe function, then will build pass. Why..?

So If I want made "dayMap" and "upReduce" still be the member functions of the PaltUnit, what should I do?