News for hackers. Stuff that matters.
Re:We used C++20 to eliminate a class of runtime bugs by jcelerier on Friday January 14, 2022 @07:16PM (#29942256)
All your examples can be replaced by

    std::vector<T> vec(numValues); 
as vector value-initializes.

Personally I prefer an explicit reserve or resize, but still..

There are no comments on this comment yet.