You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The examples show a way to bind to a constructor and provide some constant value to it. This works in the simple case, but should also work in more complex cases.
Actual Behavior
When the binding to constructor is done indirectly via a binding to an interface, the constant values are not passed to the constructor anymore.
Link to CompileExplorer
The assertion fails because value is 0. However when injector.create<user>(); is called it works just fine.
Same behavior with clang and gcc.
The text was updated successfully, but these errors were encountered:
Expected Behavior
The examples show a way to bind to a constructor and provide some constant value to it. This works in the simple case, but should also work in more complex cases.
Actual Behavior
When the binding to constructor is done indirectly via a binding to an interface, the constant values are not passed to the constructor anymore.
Steps to Reproduce the Problem
Link to CompileExplorer
The assertion fails because value is 0. However when
injector.create<user>();
is called it works just fine.Same behavior with clang and gcc.
The text was updated successfully, but these errors were encountered: