myclass* a;
is not going to construct, and neither will any of its member classes, until you call
a = new myclass;
or something similar
Constructors in a composite class
Quote:Original post by mrchrismnhI'm not sure if you mean for a to be a member of the class in question or to point to the object that's being constructed, but in either case, your example doesn't introduce any exceptions or special cases as far as the OP's question is concerned.
myclass* a;
is not going to construct, and neither will any of its member classes, until you call
a = new myclass;
or something similar
Quote:Oh lawd a mercy.Hm. Honestly, I'm not really clear as to what your objection is. The questions that have been asked and the points that have been made all seem pretty reasonable.
If you feel otherwise, why not post something meaningful explaining your views? As is, it's not very clear what you're trying to say.
Technically; myclass * a; does initialize an instance of myclass *, as expected. I think you're confusing the types of an object and a pointer to an object, which are totally distinct.
Quote:Original post by mrchrismnh
I already apologized for posting.
Goddamn, son. You just don't switch off, do you?
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement