Hacker News new | ask | show | jobs
by sankhao 714 days ago
This is doable in c++20 https://github.com/stephenberry/glaze
1 comments

That's pretty neat! What's the C++20 feature that enables this?
From a quick look, generalized constexpr evaluation, but in practice it relies on parsing non-portable decorated function names from things like source location. An ugly, slow, but effective hack.