Hi all,
Is it possible to call a constructor of a class, call it Object,
explicitely? e.g. suppose you have a void pointer ptr pointing to a
block of memory big-enough to hold an Object. Is there a way to
initialize the region pointed to by ptr by somehow calling one of
Object's constructors?
If it's not possible or a "don't do that" it's no big deal. It is more
of a curiosity question -- it would make a piece of my code simpler --
than an actual specific need.
With my best regards,
G. Rodrigues
Is it possible to call a constructor of a class, call it Object,
explicitely? e.g. suppose you have a void pointer ptr pointing to a
block of memory big-enough to hold an Object. Is there a way to
initialize the region pointed to by ptr by somehow calling one of
Object's constructors?
If it's not possible or a "don't do that" it's no big deal. It is more
of a curiosity question -- it would make a piece of my code simpler --
than an actual specific need.
With my best regards,
G. Rodrigues
Comment