Cpp Coding Standards/CLSINIT/NoVirt

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | CLSINIT
Revision as of 16:03, 28 November 2006 by Np (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

No Virtuals in Constructor or Destructor

Id: CLSINIT:NoVirt

When an object is still in construction or already partly destructed, virtual functions often do not point to the intended override, but to another implementation of that function, or even nowhere. Exact behaviour may be compiler dependent.

Personal tools