-
Notifications
You must be signed in to change notification settings - Fork 203
Open
Milestone
Description
In some use cases of bindInstance, people might want to bind constants. To support this use case, the following changes are needed:
- Change the normalization of
const C,const C&andconst C*to beconst C(instead ofC) - Forbid binding both
const CandC(with tests) - When a
const Cbinding is required, aCbinding can satisfy this requirement (also add tests for this) - Add tests for
bindInstance(const C&) - Document the caveat of
bindInstance(const C&)(the reference must outlive the injector) and add a deletedbindInstance(C&&)overload to make sure temporaries are rejected. - Update comments and wiki to mention the new kind of binding, add examples to the reference documentation
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels