Hacker News new | ask | show | jobs
by kazinator 1468 days 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.