forked from TartanLlama/expected
Add missing move
This commit is contained in:
@@ -648,7 +648,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
|
|||||||
geterr().~unexpected<E>();
|
geterr().~unexpected<E>();
|
||||||
construct(std::move(rhs).get());
|
construct(std::move(rhs).get());
|
||||||
} else {
|
} else {
|
||||||
assign_common(rhs);
|
assign_common(std::move(rhs));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -666,7 +666,7 @@ struct expected_operations_base : expected_storage_base<T, E> {
|
|||||||
throw;
|
throw;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
assign_common(rhs);
|
assign_common(std::move(rhs));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user