ordering of constructors

Gabriel Dos Reis gdr@integrable-solutions.net
Fri Apr 9 15:39:00 GMT 2004


Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr> writes:

| > Why not put a function call in the constructor for A that make sure B
| > initialized?
| 
| A simpler technique is to wrap the static members into functions 
| returning the static member ie:

Yes, that works too.  Sometime it is pratical, sometimes it is not.

-- Gaby



More information about the Gcc mailing list