When I try to use QSet and a custom class :
QSet<Alarm> alarmList;
Alarm *a = new Alarm();
alarmList.insert(a);
QSet<Alarm> alarmList;
Alarm *a = new Alarm();
alarmList.insert(a);
To copy to clipboard, switch view to plain text mode
I get the following error:
error: no matching function for call to 'QSet<Alarm>::insert(Alarm*&)'
note: candidates are: QSet<T>::const_iterator QSet<T>::insert(const T&) [with T = Alarm]
error: no matching function for call to 'QSet<Alarm>::insert(Alarm*&)'
note: candidates are: QSet<T>::const_iterator QSet<T>::insert(const T&) [with T = Alarm]
To copy to clipboard, switch view to plain text mode
Bookmarks