-/* Copyright (c) 2021-2022. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2021-2023. The SimGrid Team. All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
static void runner()
{
- auto e = simgrid::s4u::Engine::get_instance();
+ const auto* e = simgrid::s4u::Engine::get_instance();
simgrid::s4u::Host* host0 = e->host_by_name("c1_0");
simgrid::s4u::Host* host1 = e->host_by_name("c2_0");
e.load_platform(platform_file);
simgrid::s4u::Actor::create("actor", e.host_by_name("c1_0"), runner);
e.run();
- }
- catch (simgrid::AssertionError& e) {
+ } catch (const simgrid::AssertionError& e) {
std::cout << e.what() << "\n";
}