I did something similar as a proof-of-concept in Rust. Might be of interest to some people.<p><a href="https://gitlab.com/Herbstein/restreamer" rel="nofollow">https://gitlab.com/Herbstein/restreamer</a>
With C++ metaprogramming as powerful as it is, why are macros (or what I presume to be macros) in the class body still necessary? It reminds me a bit of 1990s MFC, and not in a good way.