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

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Sun Nov 6 11:28:35 GMT 2005


Stephan Kulow schrieb:

> 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?
I don't define KDE_FULL_TEMPLATE_EXPORT_INSTANTIATION so you won't be
able to call those functions with gcc. Or better: when you try to call
those functions with gcc you'll get the same problems like I get with
msvc now (gcc can't create a compare operator for this class too). And
msvc needs them now because it can't export a half instantiated class...
gcc can do this (I think it's called 'weak symbols' or something like this).

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20051106/e9995556/attachment.sig>


More information about the kde-core-devel mailing list