< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
I believe the problem you are having is that you are using the this
pointer of a
partially constructed object.and passing it into another constructor.
If this does
work then it is purely by chance/side effect etc, especially if you are
using this
code in a release build with MSVC. In any event I dont think this is
really legal ?
Boost provides a means for controlling the order of member
initialization that may
help your chicken and egg situation, which leads me to a rant about why are
we
not using boost, memory leaks et al, but I will restrain myself
;-)
Thanks
Karl
|