TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 229 subscribers
Post #24500 27
Pseudo Reflection in C++20

I discovered constexpr member pointers somewhere when looking at c++20. You can use them as compile time annotations to enable full reflection in c++20.

I got tired of playing with BOOST and nholman and wanted a better solution to reflection and had a lot of fun doing this.


Your mileage may vary


https://github.com/johnagrillo/meta\_h/tree/main




https://redd.it/1pnm5a3
@r_cpp
GitHub GitHub - johnagrillo/meta_h Contribute to johnagrillo/meta_h development by creating an account on GitHub.
More from @r_cpp
  1. Oct 10, 2026Opting in, and back out again https://dryperspective.github.io/posts/opting-in/ https://re…
  2. Oct 10, 2026I’m Building Bursztyn OS a Polish Operating System From Scratch I’m building Bursztyn OS,…
  3. Oct 9, 2026std::variant, operator== and pattern matching I was thinking, wouldn't adding equality com…
  4. Oct 8, 2026Profiles for simplicity and guarantees - Bjarne Stroustrup - CppCon 2026 https://youtu.be/…
  5. Oct 8, 2026How to Fix autoconf-style Configuration Probing https://build2.org/blog/fix-autoconf.xhtml…
  6. Oct 8, 2026owl – a header-only C++23 HTTP framework where route patterns and handler extractors are c…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →