From b211db03d6eddbbc33896391ffd23b56c410e506 Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Wed, 21 Sep 2022 19:23:17 +0000 Subject: [PATCH] #1941: modify epoch argument passing --- src/vt/termination/termination.h | 6 +++--- src/vt/termination/termination.impl.h | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/vt/termination/termination.h b/src/vt/termination/termination.h index 3f6c6bb692..4b9b46a9ba 100644 --- a/src/vt/termination/termination.h +++ b/src/vt/termination/termination.h @@ -797,13 +797,13 @@ struct TerminationDetector : public: inline EpochType getEpoch() const; - inline void pushEpoch(EpochType const& epoch); - inline EpochType popEpoch(EpochType const& epoch = no_epoch); + inline void pushEpoch(EpochType epoch); + inline EpochType popEpoch(EpochType epoch = no_epoch); inline void pushEpochFast(EpochType epoch) { epoch_stack_.push(epoch.get()); } - inline void popEpochFast(EpochType epoch) { + inline void popEpochFast() { epoch_stack_.pop(); } diff --git a/src/vt/termination/termination.impl.h b/src/vt/termination/termination.impl.h index 45409699e6..6b61c87e6f 100644 --- a/src/vt/termination/termination.impl.h +++ b/src/vt/termination/termination.impl.h @@ -142,7 +142,7 @@ inline EpochType TerminationDetector::getEpoch() const { ); return epoch_stack_.size() ? EpochType{epoch_stack_.top()} : term::any_epoch_sentinel; } - inline void TerminationDetector::pushEpoch(EpochType const& epoch) { + inline void TerminationDetector::pushEpoch(EpochType epoch) { /* * pushEpoch(epoch) pushes any epoch onto the local stack iff epoch != * no_epoch; the epoch stack includes all locally pushed epochs and the @@ -159,7 +159,7 @@ inline EpochType TerminationDetector::getEpoch() const { } } -inline EpochType TerminationDetector::popEpoch(EpochType const& epoch) { +inline EpochType TerminationDetector::popEpoch(EpochType epoch) { /* * popEpoch(epoch) shall remove the top entry from epoch_size_, iif the size * is non-zero and the `epoch' passed, if `epoch != no_epoch', is equal to the