I'm trying to compile a project which is written with Qt Project components in C++ language I've following declaration in one of the classes "DetectAll" but compiler complains about the code syntax and stops exactly at the PointIndex().
From that code I understand that PointIndex is a variable which is intrinsic for Qt Project and is passed as 2nd argument in function DetectAll. But compiler mentions also the QPair which doesn't make sense for me, can you help me to spot what am I actually doing wrong here ?
Below is original code and compiler error
protected:
.....
bool detectAll(const QPointF& pos, PointIndex& result = PointIndex());
/////////////
D:\....\MAT\Skeleton_source\sswidget.h:87: error: could not convert 'QPair<int, int>()'
from 'SSWidget::PointIndex {aka QPair<int, int>}' to 'SSWidget::PointIndex& {aka QPair<int, int>&}'
bool detectAll(const QPointF& pos, PointIndex& result = PointIndex());
^