Skip to content

Ambiguous pow function in Gaudi::Math

We have two implementations of pow(..) in Gaudi::Math

https://gitlab.cern.ch/lhcb/LHCb/blob/master/Phys/LoKiCore/LoKi/Power.h

and

https://gitlab.cern.ch/lhcb/LHCb/blob/master/Kernel/LHCbMath/LHCbMath/ValueWithError.h

This leads to a compilation error when both headers are included.

I see different options to solve it

  1. Remove Gaudi::Math::pow(double, unsigned int) and replace it with std::pow
  2. Remove the default values of the ValueWithError constructor then there should be no ambiguities.
  3. Move one of them in a different namespace.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information