Advice needed on BIC

Thiago Macieira thiago at kde.org
Tue Dec 14 21:30:17 GMT 2010


Em Terça-feira, 14 de Dezembro de 2010, às 20:53:50, Alexander Neundorf 
escreveu:
> A private function cannot be called by anybody outside the class, it can
> only  be called from within the class, so private symbols should not make
> it into any user of the class, so removing private functions should be ok.
> But if the private function is called from an inline function, then the
> call actually moves into the calling code, so it now references the private
> function, and BC would break if it was removed.
> (I experienced something similar with std::string and different  versions
> of  STL recently, a STL-standard function was implemented inline and called
> a private non-standard function... :-/ )

Don't forget the virtual rule overrides this:

You cannot remove, reorder or change the signature in any way of virtual 
functions, including private ones.

You can override a parent's private virtual.
-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
  Senior Product Manager - Nokia, Qt Development Frameworks
      PGP/GPG: 0x6EF45358; fingerprint:
      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- 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://mail.kde.org/pipermail/kde-core-devel/attachments/20101214/e900b444/attachment.sig>


More information about the kde-core-devel mailing list