From 1b7cbfe5f9f8b1bccaf907aa0fb2f0393d022c7d Mon Sep 17 00:00:00 2001 From: Charles Ofria Date: Mon, 19 Oct 2020 16:31:32 -0400 Subject: [PATCH] Fixed construtor initialization ordering in MatchBin. --- source/tools/MatchBin.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/source/tools/MatchBin.h b/source/tools/MatchBin.h index bbaf76233a..4fbc2a67a0 100644 --- a/source/tools/MatchBin.h +++ b/source/tools/MatchBin.h @@ -538,17 +538,16 @@ namespace emp { // have to define this manually due to mutexes MatchBin(const MatchBin &other) : state( other.state ) + , uid_stepper( other.uid_stepper ) , metric( other.metric ) - , selector( other.selector ) - , uid_stepper( other.uid_stepper ) { } + , selector( other.selector ) { } // have to define this manually due to mutexes MatchBin(MatchBin &&other) : state( std::move(other.state) ) - , selector( std::move(other.selector) ) + , uid_stepper( std::move(other.uid_stepper) ) , metric( std::move(other.metric) ) - , uid_stepper( std::move(other.uid_stepper) ) { - } + , selector( std::move(other.selector) ) { } // have to define this manually due to mutexes MatchBin &operator=(const MatchBin &other) {