Skip to content

Commit

Permalink
Fixed construtor initialization ordering in MatchBin.
Browse files Browse the repository at this point in the history
  • Loading branch information
mercere99 committed Oct 19, 2020
1 parent e5208d0 commit 1b7cbfe
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions source/tools/MatchBin.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1b7cbfe

Please sign in to comment.