-
Notifications
You must be signed in to change notification settings - Fork 83
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
Alternatives to std::make_shared
#58
Comments
What you would do is to register a factory that returns the pointer initialized the way you want it to be using |
We're aware of this feature, but it forces us to have to explicitly pass all the necessary parameters to the type (via Is there a way to instead change the default to something else other than |
I see what you're getting at. I imagine it would be possible to add something like a |
Actually, I looked back at the logic for resolving arguments automatically, and you'd have to provide both the deleter, and allocator, or a method that does both, so just |
Would it be possible to add the ability to create instances with something other than
std::make_shared
. Some of our objects require a custom deleter and it seems that we cannot inject the deleter when registering types.Is there a way to accomplish this now by inheriting from a container builder?
The text was updated successfully, but these errors were encountered: