12. 4. Destructors

0 hlasov

The body of a destructor is executed before the destructors for member objects. Destructors for nonstatic member objects are executed before the destructors for base classes. Destructors for nonvirtual base classes are executed before destructors for virtual base classes. Destructors for nonvirtual base classes are executed in reverse order of their declaration in the derived class. Destructors for virtual base classes are executed in the reverse order of their appearance in a depth-first left-to-right traversal of the directed acyclic graph of base classes; ``left-to-right'' is the order of appearance of the base class names in the declaration of the derived class.

The C++ Language Reference Manual

 

via http://reprog.wordpress.com/2010/03/16/why-c-is-no...

Poslať nový komentár

Obsah tohto poľa je súkromný a nebude verejne zobrazený.
To prevent automated spam submissions leave this field empty.