I have a memory pool that is allocated as char*. When I want to create an object I request memory from that pool that returns a char* somewhere in that pool cast to a void*.
So when I create a object I do this
Data* poolTest = (Data*)pool->GetMemory(sizeof(Data));
But this does not allow me to access the constructor of the class Data and I have to assign the value after I create it.
Is there anyway to change this to allow me to pass arguments the same way I would do with
Data* test = new Data(5, 5, 5);
Not sure if it possible.