[Boost].DI - Inject all the things!
summary
Claims a small generated header library called [BOOST].DI that is not part of Boost and requires no STL, able to deduce constructors and inject by value, reference, unique_ptr, templates or named concepts, producing compile‑time errors when a binding is unsatisfied. Binding syntax maps interfaces or template parameters to concrete types, and the injector can create mocks for gunit so tests get auto-generated doubles. Examples show pragmatic manual versus automatic injection and that the injector actually constructs working objects.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:08DEPENDENCY INJECTION
- 1:20INJECT BY DEFAULT (CREATE OBIECT GRAPH)
- 1:55INJECT/REFACTOR
- 3:33INJECT TEMPLATES/CONCEPTS
- 4:59LET'S INJECT ALL THE THINGS!
related talks
12mGeneric Binding
56mboost.tmp: your DSL for Metaprogramming
01h 01mC++ Mixins
01h 01mThree Unlikely Successful Features of D
39mYou Got Your Idris in My C++! A First Look at Denotational Design
05mDynaMix: A New Take on Polymorphism in C++
57mAlices adventures in Template Land
40m"Fine-Grained C++ Interop"
