We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you pass some random class (not related to dependency injection) to kgr::debug::service it doesn't report an error.
To Reproduce
struct RandomService {}; int main() { kgr::container container; kgr::debug::service<RandomService>(); return 0; }
Expected behavior Error message with something like "Class doesn't inherit from kgr::service".
Desktop
The text was updated successfully, but these errors were encountered:
Thanks for reporting. Service errors are really hard to maintain right now as they are not tested continuously. I'll take a look at it soon.
Also services are not forced to inherit from kgr::service. As long as the implementation is done correctly, the container should accept it.
kgr::service
Sorry, something went wrong.
It should print the correct error message now, and there are tests to enforce this.
No branches or pull requests
If you pass some random class (not related to dependency injection) to kgr::debug::service it doesn't report an error.
To Reproduce
Expected behavior
Error message with something like "Class doesn't inherit from kgr::service".
Desktop
The text was updated successfully, but these errors were encountered: