-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Add a const overload of bareProduct() and a markAsPresent() method to Wrapper.h
#49236
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
Add a const overload of bareProduct() and a markAsPresent() method to Wrapper.h
#49236
Conversation
|
cms-bot internal usage |
|
type ngt |
|
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-49236/46583
|
|
A new Pull Request was created by @ghyls for master. It involves the following packages:
@Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
|
please test |
|
While this PR looks seemingly straightforward, I want to understand the wider context (#49152) first before commenting on The |
|
The reason for The only difference is that the plugin-based approach can use the concrete |
PR description:
Add two methods to
Wrapper.h, which are required by our implementation of aGenericClonerbased on anedmplugin::PluginFactory(#49152):This is required to mark as present a newly created
Wrapper<T>initialized in our case from anedm::WrapperBase&.We don't strictly need this overload, but we would appreciate having it, so we can call
bareProduct()on a non constWrapper<T>. Otherwise we would need to do*w.product();, but that includes a check forpresentthat we don't need when we can ensure in advance thatpresentis true.