Skip to content

Commit 9e6770f

Browse files
committed
Move LHERunInfo::Process comparision operators before usage to fix CLANG+CPP20
1 parent e232a9b commit 9e6770f

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

GeneratorInterface/LHEInterface/src/LHERunInfo.cc

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,13 @@ static int skipWhitespace(std::istream &in) {
3434
}
3535

3636
namespace lhef {
37+
const bool operator==(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
38+
return (lhs.process() == rhs.process());
39+
}
40+
41+
const bool operator<(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
42+
return (lhs.process() < rhs.process());
43+
}
3744

3845
LHERunInfo::LHERunInfo(std::istream &in) {
3946
in >> heprup.IDBMUP.first >> heprup.IDBMUP.second >> heprup.EBMUP.first >> heprup.EBMUP.second >>
@@ -528,12 +535,4 @@ namespace lhef {
528535
return std::make_pair(pdfA, pdfB);
529536
}
530537

531-
const bool operator==(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
532-
return (lhs.process() == rhs.process());
533-
}
534-
535-
const bool operator<(const LHERunInfo::Process &lhs, const LHERunInfo::Process &rhs) {
536-
return (lhs.process() < rhs.process());
537-
}
538-
539538
} // namespace lhef

0 commit comments

Comments
 (0)