Skip to content
Snippets Groups Projects
Commit cf01061e authored by scott snyder's avatar scott snyder Committed by scott snyder
Browse files

TrkParametersBase: Fix ambiguities with clang/c++20.

Need to have an exact match for operator== to prevent ambiguities
when compiling with c++20.
parent dce7b2c6
No related branches found
No related tags found
5 merge requests!69091Fix correlated smearing bug in JER in JetUncertainties in 22.0,!58791DataQualityConfigurations: Modify L1Calo config for web display,!51674Fixing hotSpotInHIST for Run3 HIST,!50012RecExConfig: Adjust log message levels from GetRunNumber and GetLBNumber,!49613TrkParametersBase: Fix ambiguities with clang/c++20.
......@@ -128,6 +128,9 @@ public:
virtual bool operator==(
const ParametersBase<DIM, T>& rhs) const override final;
// Needed to avoid ambiguities with c++20.
bool operator==(const ParametersT &rhs) const;
/** Virtual clone */
virtual ParametersT<DIM, T, S>* clone() const override final;
......
......@@ -232,6 +232,12 @@ ParametersT<DIM, T, S>::operator==(const ParametersBase<DIM, T>& rhs) const
// return compatibility of base class parts
return ParametersBase<DIM, T>::operator==(rhs);
}
template<int DIM, class T, class S>
bool
ParametersT<DIM, T, S>::operator==(const ParametersT& rhs) const
{
return *this == static_cast<const ParametersBase<DIM, T> &>(rhs);
}
/** clone */
template<int DIM, class T, class S>
ParametersT<DIM, T, S>*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment