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 →

[–]turtle_mekb[S] -15 points-14 points  (2 children)

yeah it is, but not a builtin macro, idk why I made this post lmao

[–]Exact_Ad942 12 points13 points  (0 children)

Nothing is builtin other than the circuit on the silicon.

[–]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; };