[Development] d_ptr and q_ptr
Thiago Macieira
thiago.macieira at intel.com
Tue Nov 22 12:09:19 CET 2011
On Tuesday, 22 de November de 2011 08.53.47, Olivier Goffart wrote:
> I can't recall an example of non-shared copyable class with a private
> implementation in Qt, so that mean they are rares.
If it's copyable, it usually *can* be shared. Non-sharability would exist in
the case where there are const_cast<> or mutable around, as that would imply
doing write operations in read-only (const) methods, such as lazy
initialisation.
There may be a few cases left of those in Qt.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
Intel Sweden AB - Registration Number: 556189-6027
Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/development/attachments/20111122/9d30ad1c/attachment.sig>
More information about the Development
mailing list