GitLab service scheduled maintenance on Friday, March 21st 2025 as of 08h00 Geneva time for an estimated period of 1 hour. Further information under OTG0154918.
Follow up on this comment and tweak ParticleID
such than it is constexpr
constructible, and thus allow one to make constexpr
named instances to avoid having to know numerical values of particles.
Thanks to !4880 (merged) which was merged here, it also defines such a named set for the most popular particles.
In addition, add a few [nodiscard]
and make operator<<
a hidden friend, so the compiler will no longer mention it in case someone requests a non-existing operator<<
as an alternative that it failed to use (ie. make some compiler error messages shorter).
Finally, remove operator!=
as C++20 will synthesize it from operator==
, i.e. it is no longer explicitly needed.