-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 feature). Christian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFDZP4VnNKwkgf+zVMRAqEFAJ91ve+yHhAuG57U1S1XiOMkbEIlLgCbBAkI WvltpKgEIVNdYNDLtV0a7K4= =16Oz -----END PGP SIGNATURE-----