[PATCH] add dummy operator== and dummy qHash for win32 target

André Wöbbeking Woebbeking at onlinehome.de
Sun Nov 6 11:27:08 GMT 2005


On Sunday 06 November 2005 12:13, Stephan Kulow wrote:
> On Sunday 06 November 2005 12:07, André Wöbbeking wrote:
> > MSVC needs operator==() and qHash() for instantiation of QList<>
> > (dunno whether for compilation or linking) even if you don't call
> > the QList's methods which use them.
>
> So you won't notice with gcc when you start calling these QList
> functions because we have these "dummy" functions?

That's the reason why Christian only implement them for MSVC and not for 
GCC.

> I think, these functions should be implemented or it should be
> forbidden to use QList on them at all. That's my point. Either they
> are values and then they are really or they are not.

Well, operator==() should be very easy in most cases but qHash()? 
Probably toSet() as member function of QList isn't the best idea.




More information about the kde-core-devel mailing list