Skip to content

Avoid operators in the global namespace

Avoid putting operators with MuonLayout as argument(s) in the global namespace

  • instead, make them 'hidden friends' and let ADL do its job
  • this avoids getting long error messages of possible overloads that are available, but not applicable if you write any code which uses '==', '!=' or '<<' using types for which those operators are not yet defined...
Edited by Rosen Matev

Merge request reports