Repository navigation
Dependency injection resolution rules: which dependency should a parameter bind to? #736
dornbirndevelops
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
While working on #722 (fixing the exponential MSVC compile time with many reference dependencies, #715),
the proposed fix involved how
smlooks up its dependencies.The new lookup behaves differently in a number of edge cases.
None of them are documented and none were covered by tests.
So the review turned into a discussion about what the correct behavior is,
and so far we have opinions but no shared answer.
I don't think a compile-time fix is the right place to decide this, so I'd like to agree on the rules here first.
Once they're settled, we can:
Terms
sm<c> sm{x, y};[](const base& b) { ... }Proposed principles
This list is a starting point and certainly not complete. If you think a principle is missing, wrong or too strict, feel free to suggest changes so we can discuss them.
All reactions