u/BattleDashBR

C++26 reflection-based dependency injection
▲ 59 r/cpp

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.

u/BattleDashBR — 3 days ago