Skip to content
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

Fix clang problems in JetMETCorrections/Type1MET #4966

Merged

Conversation

Dr15Jones
Copy link
Contributor

Fixed compilation problems in JetMETCorrections/Type1MET when it was compiled under clang.

Had to explicitly add universal initializer syntax to instantiation
of a temporary const object.
clang complained that 'sign' was not being used because the templated
function which used it was not being instantiated in a given object
file. However, since declaring unnamed namespaces in a header is a
bad idea anyway, I moved one function to be a static member of the
template (since it was also templated on the same type) and put
'sign' into a unique namespace.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @Dr15Jones (Chris Jones) for CMSSW_7_2_X.

Fix clang problems in JetMETCorrections/Type1MET

It involves the following packages:

JetMETCorrections/Type1MET

@nclopezo, @vadler, @cmsbuild, @Degano, @monttj can you please review it and eventually sign? Thanks.
@nhanvtran, @TaiSakuma, @mmarionncern, @schoef this is something you requested to watch as well.
You can sign-off by replying to this message having '+1' in the first line of your reply.
You can reject by replying to this message having '-1' in the first line of your reply.

@cmsbuild
Copy link
Contributor

@cmsbuild
Copy link
Contributor

@ktf
Copy link
Contributor

ktf commented Aug 16, 2014

Bypassing AT. Complain if not ok.

ktf added a commit that referenced this pull request Aug 16, 2014
…ctionsType1MET

Fix clang problems in JetMETCorrections/Type1MET
@ktf ktf merged commit 3ce7b16 into cms-sw:CMSSW_7_2_X Aug 16, 2014
@Dr15Jones Dr15Jones deleted the fixClangProblemsInJetMETCorrectionsType1MET branch August 18, 2014 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants