std::sort() richiede che l'operatore < sia globale.
Risolvi così:
codice:bool operator <(const ATask& lhs, const ATask& rhs ){ // invoca l'operatore definito nella classe. return lhs < rhs ; }
std::sort() richiede che l'operatore < sia globale.
Risolvi così:
codice:bool operator <(const ATask& lhs, const ATask& rhs ){ // invoca l'operatore definito nella classe. return lhs < rhs ; }
This code and information is provided "as is" without warranty of any kind, either expressed
or implied, including but not limited to the implied warranties of merchantability and/or
fitness for a particular purpose.