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
Avoid calling the wrong constructor for EDGetTokenT #31701
Conversation
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31701/18863
|
A new Pull Request was created by @Dr15Jones (Chris Jones) for master. It involves the following packages: FWCore/Utilities @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
please test |
The tests are being triggered in jenkins.
|
@@ -88,7 +88,8 @@ namespace edm { | |||
|
|||
//Needed to avoid EDGetTokenT(ADAPTER&&) from being called instead | |||
// when we can use C++20 concepts we can avoid the problem using a constraint | |||
constexpr EDGetTokenT(EDGetTokenT& iOther) noexcept : m_value{iOther.m_value} {} | |||
constexpr EDGetTokenT(EDGetTokenT<T>& iOther) noexcept : m_value{iOther.m_value} {} | |||
constexpr EDGetTokenT(const EDGetTokenT<T>&& iOther) noexcept : m_value{iOther.m_value} {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would ESGetToken
benefit from a similar fix?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed since ESGetToken
doesn't support the ADAPTER
ability (since it doesn't know the data product type).
-1 Tested at: 4a9eced CMSSW: CMSSW_11_2_X_2020-10-07-1100 The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: You can see the results of the tests here: I found follow errors while testing this PR Failed tests: ClangBuild
I found compilation warning while trying to compile with clang. Command used:
See details on the summary page. The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
You can see more details here: |
Comparison not run due to Build errors/Fireworks only changes/No short matrix requested (RelVals and Igprof tests were also skipped) |
Added an additional special constructor to avoid accidentally calling the constructor taking an adapter.
4a9eced
to
6b98d30
Compare
The code-checks are being triggered in jenkins. |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31701/18894
|
Pull request #31701 was updated. @makortel, @smuzaffar, @cmsbuild, @Dr15Jones can you please check and sign again. |
please test |
The tests are being triggered in jenkins.
|
-1 Tested at: 6e41cd2 CMSSW: CMSSW_11_2_X_2020-10-08-1100 I found follow errors while testing this PR Failed tests: UnitTests
I found errors in the following unit tests: ---> test materialBudgetHGCalPlots had ERRORS |
Comparison job queued. |
Comparison is ready Comparison Summary:
|
+1 |
This pull request is fully signed and it will be integrated in one of the next master IBs (but tests are reportedly failing). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2) |
+1 |
merge |
PR description:
PR validation:
Code compiles and the unit test passes.