...that's definitely one of the more cursed things I've ever seen in C++. Apparently the __PRETTY_FUNCTION__ macro is expanded *after* template instantiation.https://discuss.systems/@tobinbaker/111389666037676146
Background: this is motivated by compile-time 32-bit type ID extraction for template types. Here's the best I have so far (relies on GCC __PRETTY_FUNCTION__ macro…
@glaebhoerl yup, highly magical
btw here's a more principled and portable approach to compile-time type info: https://github.com/Manu343726/ctti
Compile Time Type Information for C++. Contribute to Manu343726/ctti development by creating an account on GitHub.
a Schelling point for those who seek one
@glaebhoerl yup, highly magical
btw here's a more principled and portable approach to compile-time type info: https://github.com/Manu343726/ctti
Compile Time Type Information for C++. Contribute to Manu343726/ctti development by creating an account on GitHub.
GitHub