K
keith
Hi,
Can't see this addressed specifically in the FAQ-Lite, so... If a
class needs an internal data structure, which method is commonly held
to be preferable; to embed the structure in the class, or to embed a
pointer in the class, and dynamically allocate the structure in the
ctor (and delete in the dtor)? Or for this straightforward case, does
it not really matter?
Thx
Can't see this addressed specifically in the FAQ-Lite, so... If a
class needs an internal data structure, which method is commonly held
to be preferable; to embed the structure in the class, or to embed a
pointer in the class, and dynamically allocate the structure in the
ctor (and delete in the dtor)? Or for this straightforward case, does
it not really matter?
Thx