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

[CPP20][GEOMETRY] Remove deprecated enum arithmetic #44488

Closed

Conversation

iarspider
Copy link
Contributor

PR description:

Some arithmetic and logic operations on enums are deprecated in C++20. This PR aims to fix these.

PR validation:

Bot tests.

@iarspider
Copy link
Contributor Author

please test for CMSSW_14_1_CPP20_X

@cmsbuild
Copy link
Contributor

cmsbuild commented Mar 20, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-44488/39577

  • This PR adds an extra 40KB to repository

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @iarspider for master.

It involves the following packages:

  • Geometry/CaloEventSetup (geometry)
  • Geometry/CaloTopology (geometry)
  • Geometry/EcalTestBeam (geometry)
  • Geometry/ForwardGeometry (geometry)

@mdhildreth, @bsunanda, @Dr15Jones, @makortel, @civanch can you please review it and eventually sign? Thanks.
@ReyerBand, @fabiocos, @wang0jin, @bsunanda, @rchatter, @thomreis, @argiro this is something you requested to watch as well.
@sextonkennedy, @antoniovilela, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@makortel
Copy link
Contributor

The arithmetic on enum is a sign that maybe the value would be better expressed as constexpr constant. I think it would be good to explore that approach before going with static_cast.

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d5c564/38288/summary.html
COMMIT: f02a4a8
CMSSW: CMSSW_14_1_CPP20_X_2024-03-18-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/44488/38288/install.sh to create a dev area with all the needed externals and cmssw changes.

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:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d5c564/38288/git-recent-commits.json
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-d5c564/38288/git-merge-result

Comparison Summary

Summary:

@antoniovilela
Copy link
Contributor

The arithmetic on enum is a sign that maybe the value would be better expressed as constexpr constant. I think it would be good to explore that approach before going with static_cast.

@iarspider

I already merged two similar PRs. In case you change the implementation, please go back to those two as well.

@iarspider
Copy link
Contributor Author

iarspider commented Mar 20, 2024 via email

@cmsbuild
Copy link
Contributor

Pull request has been put on hold by @iarspider
They need to issue an unhold command to remove the hold state or L1 can unhold it for all

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.

4 participants