LodeHQ
AI news for people who shipFree, by email

Dev · ryanjk5.github.io · Tuesday, 14 July 2026

C++26 Reflection Cuts Type‑Erasure Boilerplate with rjk::duck

rjk::duck is a single‑header C++26 library that leverages static reflection to build type‑erased wrappers with far less boilerplate than Boost.TypeErasure or Folly.Poly. By annotating an interface once, you get owning and non‑owning semantics, vtable generation, and seamless runtime swapping of implementations. It works today on GCC with -std=c++26 -freflection, promising simpler, faster metaprogramming.

Read the source: ryanjk5.github.io ↗In the 14 July issue →