News for hackers. Stuff that matters.
Re:Ill-Advised C++ Rant, Part 2 (2016) by stabbles on Wednesday October 25, 2017 @03:32PM (#15553343)
OP complains about C-style arrays when criticizing C++. Just using `std::array` makes life easier.
Re:Ill-Advised C++ Rant, Part 2 (2016) by sseagull on Wednesday October 25, 2017 @03:44PM (#15553438)
Yeah that one is a little weird. C++11 included std::array to solve that problem (among others), but he doesn't use it and then complains about it anyway.
Re:Ill-Advised C++ Rant, Part 2 (2016) by colanderman on Wednesday October 25, 2017 @03:41PM (#15553407)
Agreed, though unfortunately pre-C++17 you must specify the size when defining the array.