commit | c84c7dea4871e0c8a24d68f3a12277cf80587e2a | [log] [tgz] |
---|---|---|
author | Marco Poletti <poletti.marco@gmail.com> | Sun Jul 30 12:09:06 2017 +0100 |
committer | Marco Poletti <poletti.marco@gmail.com> | Sun Jul 30 13:25:03 2017 +0100 |
tree | fb74adc3111e6d8caafc5d626bc83272cd475122 | |
parent | b95efcce188e5d56e7e58670cca6b22e09f714da [diff] |
Allow Component, NormalizedComponent, Injector and Provider to specify that they only require/provide a const T (instead of requiring/providing a T). This is in preparation for allowing const bindings.
Fruit is a dependency injection framework for C++, loosely inspired by the Guice framework for Java. It uses C++ metaprogramming together with some new C++11 features to detect most injection problems at compile-time. It allows to split the implementation code in "components" (aka modules) that can be assembled to form other components. From a component with no requirements it's then possible to create an injector, that provides an instance of the interfaces exposed by the component.
See the wiki for more information, including installation instructions, tutorials and reference documentation.