I hope some guru out there could help me to show me if that is possible.
There's two ways to create an object. One is calling the constructor explicitly in our code:
TClass object(arguments);
and the other is creating it dinamically with 'new':
TClass* pObject = new TClass(arguments);
Now, I'd like to know if it's possible to create an object in a space of memory whis has been already allocated. For example, we allocate an amount of memory which is enough to take an object:
void* pointer = malloc(sizeof(TClass));
and then, use that pointer to create an object in... It's that possible?
Thanx a lot

New Topic/Question
Reply




MultiQuote






|