News for hackers. Stuff that matters.
Re:Ill-Advised C++ Rant, Part 2 by hendzen on Sunday March 06, 2016 @10:05PM (#11236859)
Before the array decays to a pointer, you can get its length.

Here is the implementation of std::begin for arrays in libc++: https://github.com/llvm-mirror/libcxx/blob/60d223df071f6e3d4...

Re:Ill-Advised C++ Rant, Part 2 by stormbrew on Sunday March 06, 2016 @10:07PM (#11236866)
Quite right, I'm apparently rusty on my stdlib knowledge. Didn't know about the reference trick.