[Patch] fix compile kdecore with msvc
Ch.Ehrlicher at gmx.de
Sun Oct 30 17:08:37 GMT 2005
-----BEGIN PGP SIGNED MESSAGE-----
André Wöbbeking schrieb:
> On Sunday 30 October 2005 17:49, Thiago Macieira wrote:
>>Christian Ehrlicher wrote:
>>>>You cannot compare two structs unless they provide operator==.
>>>>Since KResolverEntry doesn't, you cannot compare two
>>>>KResolverResults. You're not supposed to, either, nor transform it
>>>>into a set or vector.
>>>But when you export the class, you have to provide a complete class
>>>interface with all functions implemented...
>>No, I don't agree. Why should I provide functions that are not meant
>>to be called, ever?
> I think this is all about template instantiation. AFAIK msvc wants to
> instantiate the whole template class while gcc instantiate on demand.
Msvc also instantiate only on demand (otherwise I couldn't compile
kdecore without KDE_EXPORT macro in KResolverResults), but when
exporting it in a dll, you have to provide the full instantiated class
(and I don't think gcc can do this another way when using visibility
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the kde-core-devel