Fix modernization compiler errors and warnings.
Description
Description
Details
Details
- Auditors
tlatham - Provenance
jback Authored on Jan 30 2019, 2:34 PM jback Pushed on Jan 30 2019, 2:35 PM - Parents
- rEVTGEN2137c4de5590: Update EvtParser and EvtSLDiBaryonAmp from master.
- Branches
- Unknown
- Tags
- Tasks
- T13: Modernize EvtGen
Event Timeline
Comment Actions
Just a couple of minor queries. They are genuine questions but I do this largely to try out the code auditing procedures in Phabricator ;)
/src/EvtGenModels/EvtRareLbToLll.cpp | ||
---|---|---|
100 | What was the compiler warning/error here? EvtDiracParticle parent{}; | |
/src/EvtGenModels/EvtVubNLO.cpp | ||
613–615 | I assume that the problem was that the compiler could not deduce the template parameters? std::array<double,6> gammaCoeffs { ... }; |
/src/EvtGenModels/EvtRareLbToLll.cpp | ||
---|---|---|
100 | The error was that the copy and assignment constructors for EvtDiracParticle are declared private, so the auto command didn't work. I will change this to use the object, as you suggest. | |
/src/EvtGenModels/EvtVubNLO.cpp | ||
613–615 | Yes, the compiler couldn't work out the template parameters. I will change this to as you suggest. |
Comment Actions
Thanks @jback, I see that the two small points I raised are implemented in rEVTGEN24d37621f536