Return Restart State Object by Move()
Useful since we don't get in-place construction when returning a composite object. Also useful if we decide to make RstState a move-only type.
This commit is contained in:
parent
d7c495e229
commit
def4dd2c68
@ -123,7 +123,7 @@ std::tuple<Schedule, Schedule, RestartIO::RstState> load_schedule_pair(const std
|
||||
EclipseState ecl_state_restart(restart_deck);
|
||||
Schedule restart_sched(restart_deck, ecl_state_restart, python, {}, &rst_state);
|
||||
|
||||
return {sched, restart_sched, rst_state};
|
||||
return {sched, restart_sched, std::move(rst_state)};
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user