DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Beautiful Type Erasure with C++26 Reflection

Quality: 8/10 Relevance: 8/10

Summary

Ryan Keane explores Beautiful Type Erasure using C++26 reflection through the rjk-duck library. The post covers how reflection enables a compact, high-performance type-erasure approach, including tag generation, vtable codegen, overload resolution, and a pointer-interconvertibility trick to avoid heavy back-pointers, with notes on performance and future improvements.

🚀 Service construit par Johan Denoyer