Re: Private constructor
Andy wrote:
[color=blue]
> Constructors do have this pointers. Got that corrected. "This" can be
> accessed inside the constructor body, not the initializer list ...
> which is absolutely logical. In the initializer list, the object is
> still to be completely constructed.[/color]
The same may be said of the entire constructor, if the class has virtual
methods.
Thanks for helping explain why constructors cannot be called.
-Jeff
Andy wrote:
[color=blue]
> Constructors do have this pointers. Got that corrected. "This" can be
> accessed inside the constructor body, not the initializer list ...
> which is absolutely logical. In the initializer list, the object is
> still to be completely constructed.[/color]
The same may be said of the entire constructor, if the class has virtual
methods.
Thanks for helping explain why constructors cannot be called.
-Jeff
Comment