-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong single_service when it should be service #126
Labels
Milestone
Comments
I confirm the issue. The workaround is to use |
For the moving two time, this is a consequence of how kangaru 4 is designed. kangaru 5 won't have this issue. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Attempting to use
container.service<>
on a service that implementsautowire_service
, will result in copy of the object rather than move since its usingsingle_service
instead ofservice
.kangaru/include/kangaru/autowire.hpp
Lines 169 to 173 in ab498eb
To Reproduce
1- Create
main.cpp
with the following content:Expected behavior
The program should not make copies of the service but instead move it around
the output for the previous sample:
Desktop (please complete the following information):
Additional context
Another note i've noticed is that it moves the object two times instead of once.
The text was updated successfully, but these errors were encountered: