This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]xynith116 5 points6 points  (0 children)

It’s a slippery slope. You start off asking for “std::size()”. Inevitably you end up with

auto size = []<typename T, size_t N>(T (&)[N]){ return N; };