https://www.godbolt.org/z/4KK997
PS: interesting to note that Zig does the "right thing":
https://www.godbolt.org/z/9c13PY
Andrei Alexandrescu mentions it in a talk, if constexpr doesn't really do much of anything useful because it introduces a scope.
https://www.godbolt.org/z/4KK997
PS: interesting to note that Zig does the "right thing":
https://www.godbolt.org/z/9c13PY