element* elements = new element[size.x];
This will build X elements with the default constructor. During my program, I would like to construct each element with different constructor parameters, like this:
for(int i=0; i < size.x; ++i)
elements[i] = element(i);
Is there any way to prevent and needless default instanciation (that I don’t want to implement) and a needless calle to Operator= ?
if it doesn’t hurt your design you can use a double pointer to achieve this