cms-patatrack / cmssw

CMSSW fork of the Patatrack project
https://patatrack.web.cern.ch/patatrack/index.html
Apache License 2.0
2 stars 5 forks source link

EncodedEventId::operator()() is NOT const #619

Closed VinInn closed 3 years ago

VinInn commented 3 years ago

one is forced to use rawId.

VinInn commented 3 years ago
/cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-04-18-0000/src/SimDataFormats/EncodedEventId/interface/EncodedEventId.h:31:12: note: candidate: 'uint32_t EncodedEventId::operator()()' <near match>
   31 |   uint32_t operator()() { return id_; }
      |            ^~~~~~~~
/cvmfs/cms-ib.cern.ch/week1/slc7_amd64_gcc900/cms/cmssw/CMSSW_12_0_X_2021-04-18-0000/src/SimDataFormats/EncodedEventId/interface/EncodedEventId.h:31:12: note:   passing 'const EncodedEventId*' as 'this' argument discards qualifiers
VinInn commented 3 years ago

not here