Fix usage of bit_cast
* the second template argument (the 'source' type) should be deduced by the compiler. Only the first 'target' one should be specified. * specifying the second argument effectively introduces another static_cast from the actual argument type to the now specified argument type -- which could trigger unwanted conversions in case there is a mismatch.
Showing
- Pr/PrAlgorithms/src/PrDownTrack.h 1 addition, 1 deletionPr/PrAlgorithms/src/PrDownTrack.h
- Pr/PrConverters/src/fromTrackv2PrSeedingTrack.cpp 2 additions, 2 deletionsPr/PrConverters/src/fromTrackv2PrSeedingTrack.cpp
- Pr/PrKernel/include/PrKernel/UTHit.h 1 addition, 1 deletionPr/PrKernel/include/PrKernel/UTHit.h
- Pr/PrVeloUT/src/PrVeloUT.cpp 1 addition, 1 deletionPr/PrVeloUT/src/PrVeloUT.cpp
Loading
Please register or sign in to comment