From Jason Turner
Watch on YouTube

Summary

This episode showcases the most practical application of C++26 reflection: automatic binding of C++ functions to scripting interfaces. Jason demonstrates using his constexpr-capable lisp-like scripting language (cons_expr) with reflection's ^^namespace syntax and template for loops to automatically expose all public members of a namespace to the script engine. The reflection API's splice operator and display_string_of function enable zero-boilerplate bindings that automatically update when the interface changes, eliminating the need for tools like SWIG or manual registration of each function.

Resources

Tags