Update src/io/simulator/simulator.hpp
Co-authored-by: gvolfing <107616712+gvolfing@users.noreply.github.com>
This commit is contained in:
parent
747b8a21cd
commit
2a81ce5640
@ -51,8 +51,7 @@ class Simulator {
|
||||
SimulatorStats Stats() { return simulator_handle_->Stats(); }
|
||||
|
||||
std::function<bool()> GetSimulatorTickClosure() {
|
||||
std::shared_ptr<SimulatorHandle> handle_copy = simulator_handle_;
|
||||
std::function<bool()> tick_closure = [handle_copy] { return handle_copy->MaybeTickSimulator(); };
|
||||
std::function<bool()> tick_closure = [handle_copy = simulator_handle_] { return handle_copy->MaybeTickSimulator(); };
|
||||
return tick_closure;
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user