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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to