Problem with explicit copy ctor
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Fri Feb 23 20:19:50 CET 2007
Stromek schrieb:
<snip>
> Btw. if we are talking about this copy constructor issue I have a question. I am not a developer of kde stuff and I don't understand its specifics, particulary this KConfig class, however, what it is good for to have a copy constructor in the child if the parent declared it private? For me, that means you "cannot make a copy" of the object because you cannot copy attributes of the parent. In reality, you can make it but it won't be a copy because the attributes declared in the parent will be default.
>
for now a solution is to add an empty detach to class KSharedConfigPtr
void attach() {qWarning("KSharedConfigPtr::attach() was called");}
This should solve the problems.
I think I know why it's happen (the same reason why we need to introduce
KDE_FULL_TEMPLATE_EXPORT_INSTANTIATION) but I wonder why it works with
msvc2005 - seems like there was one real step forward ;-)
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-windows/attachments/20070223/0d3b86d0/attachment.pgp
More information about the Kde-windows
mailing list