News for hackers. Stuff that matters.
Re:Zeroing Memory is Hard: VC++ 2015 arrays by andreyv on Monday July 18, 2016 @02:01PM (#12116899)
A simple new int[] will work. It doesn't initialize the array (unlike the new int[]() version).

You can use it with std::unique_ptr<> to simplify memory management.

Re:Zeroing Memory is Hard: VC++ 2015 arrays by SeanBoocock on Monday July 18, 2016 @08:30PM (#12118790)
This is true but at least with the current standard you will want to define a custom deleter with your unique_ptr to implement "delete [] data" vs the default behavior of "delete data".