2 ms·
I'm still trying to figure out how it manages to get the member names at compile time! Turns out it uses source_location and parses the string all at compile t
by adzm 2y ago
I'm still trying to figure out how it manages to get the member names at compile time!
Turns out it uses source_location and parses the string all at compile time!
https://www.reddit.com/r/cpp/comments/18b8iv9/c20_to_tuple_with_compiletime_names/ https://www.reddit.com/r/cpp/comments/18b8iv9/c20_to_tuple_w...
- gpderetta 2y agoIn the grand tradition of C++, the compiler already knows everything the programmer wants, it just has to be coerced with increasingly convoluted incantations to give it away.