Compile error with QT_STRICT_ITERATORS

Olivier Goffart ogoffart at kde.org
Sun Oct 19 15:39:57 BST 2008


Le dimanche 19 octobre 2008, Thiago Macieira a écrit :
> Christian Ehrlicher wrote:
> >Hi,
> >
> >
> >This code doesn't compile - neither with msvc nor with gcc 3.4.5
> > (mingw):
> >
> >----------------------------8<------------
> >#define QT_STRICT_ITERATORS
> >#include <QtCore/QHash>
> >
> >int main(int, char**)
> >{
> >   QMultiHash<QString,QString> myHash;
> >   myHash.remove("blub", "blub");
> >
> >   return 0;
> >}
> >----------------------------8<------------
> >
> >Looks like a qt-bug to me or do I miss something?
>
> There's no QHash::remove(const Key &, const T &);

That's the QMultiHash::remove function which take two arguments
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20081019/50f911d3/attachment.sig>


More information about the kde-core-devel mailing list