Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on C++ 17 is Done. Parent comment
void f(std::variant<int, char>)
f(x: IntOrChar)
Actually, https://godbolt.org/g/1vcMeG might be even better to compare; I'm not an expert, but looks like the only difference is in the size.
last one, adding inline(never) so you can see the calls in main: https://godbolt.org/g/cVDjQH
movabs rdi, 21474836480 call example::f1@PLT
mov edi, 5 pop rbp jmp example::f2@PLT
Actually, https://godbolt.org/g/1vcMeG might be even better to compare; I'm not an expert, but looks like the only difference is in the size.
last one, adding inline(never) so you can see the calls in main: https://godbolt.org/g/cVDjQH
vs so, yup.