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:
Bård Skaflestad 2021-11-03 22:46:12 +01:00
parent d7c495e229
commit def4dd2c68

View File

@ -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)};
}