JimDaniel
15th December 2007, 04:13
My code looks something like this:
QSet<QString> mySet;
mySet.insert(someString);
...
qSort(&mySet);
But I'm getting this error:
'qSort' : cannot convert parameter 1 from 'QSet<T> *' to 'QSet<T> & ' with [T=QString] and [T=QString]
I think my logic/syntax is okay, so what is the problem?
QSet<QString> mySet;
mySet.insert(someString);
...
qSort(&mySet);
But I'm getting this error:
'qSort' : cannot convert parameter 1 from 'QSet<T> *' to 'QSet<T> & ' with [T=QString] and [T=QString]
I think my logic/syntax is okay, so what is the problem?