C++26 reflection-based dependency injection
I was playing with reflection and made this (messy) implementation of Guice\-like dependency injection. I worked in a codebase a few years back that was fully Guice-based and it was one of the cleanest and easiest to maintain architectures I've seen. Having it in C++ now is awesome.
https://godbolt.org/z/qrzdrarvr
I'm excited to see all the other interesting things that'll come out of reflection.
https://redd.it/1t9xcln
@r_cpp
Post #25169
18