3 ms·
> } *x = new X[100](); This C++ coder seems to have a habit of writing unecessary constructor argument lists. The example works if we change it to: *x = new
by kazinator 4y ago
> } *x = new X[100]();
This C++ coder seems to have a habit of writing unecessary constructor argument lists. The example works if we change it to:
*x = new X[100];
There are situations in C++ in which an extra constructor parameter list will do something different, so I'd be wary of this candidate.