logoalt Hacker News

jjmarr04/23/20252 repliesview on HN

C++23 doesn't have full reflection yet. That's coming in C++26.

I've seen the vast majority of build time in a very large C++23 project be taken up by reflection in fmtlib and magic_enum because both have to use templates (I think).


Replies

vitaut04/25/2025

{fmt} doesn't use reflection and is optimized for build speed using type erasure: https://vitaut.net/posts/2024/faster-cpp-compile-times/

pjmlp04/24/2025

I didn't said it has, rather that template metaprogramming can be both readable, and with the right compiler relatively fast.