[comp.lang.c++] automatic post construction actions

dove@rocket.UUCP (Webster Dove) (06/06/89)

How can I implement a base class that performs some action with a
completed object?  For example, it might link the object into
global data structures.  I can't do that in the base constructor
because the object is incomplete then.  Is there an :after :init
mechanism, or must I request (and trust) that the writer of the final
derived class call a "link-me" function (ugly at best).

Web

--
		Dr. Webster Dove
		Computing Systems and Architectures
		Advanced Signal Processing Engineering (ASPEN) Dept.
		Sanders Associates (a Lockheed Company)