News for hackers. Stuff that matters.
Re:Ill-Advised C++ Rant, Part 2 (2016) by bstamour on Wednesday October 25, 2017 @04:14PM (#15553739)
Unfortunately yes. The implementation is straight forward though:

    template <typename Container>
    std::size_t size(Container const& c) { return c.size(); }

    template <typename T, std::size_t K>
    std::size_t size(T (&)[K]) { return K; }

There are no comments on this comment yet.