X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/6fb292d7e99020dc305b845e0a2284a9d811a4b2..27ea8d78c124dd6b7cdb649b8d2bb95dc16f4cde:/src/surf/cpu_ti.hpp diff --git a/src/surf/cpu_ti.hpp b/src/surf/cpu_ti.hpp index ecb3575fa3..096151013d 100644 --- a/src/surf/cpu_ti.hpp +++ b/src/surf/cpu_ti.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2020. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2013-2021. 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. */ @@ -91,8 +91,9 @@ public: boost::intrusive::list_member_hook<> action_ti_hook; }; -typedef boost::intrusive::member_hook, &CpuTiAction::action_ti_hook> ActionTiListOptions; -typedef boost::intrusive::list ActionTiList; +using ActionTiListOptions = + boost::intrusive::member_hook, &CpuTiAction::action_ti_hook>; +using ActionTiList = boost::intrusive::list; /************ * Resource * @@ -110,7 +111,7 @@ public: void update_actions_finish_time(double now); void update_remaining_amount(double now); - bool is_used() override; + bool is_used() const override; CpuAction* execution_start(double size) override; CpuAction* execution_start(double, int) override { @@ -130,8 +131,9 @@ public: boost::intrusive::list_member_hook<> cpu_ti_hook; }; -typedef boost::intrusive::member_hook, &CpuTi::cpu_ti_hook> CpuTiListOptions; -typedef boost::intrusive::list CpuTiList; +using CpuTiListOptions = + boost::intrusive::member_hook, &CpuTi::cpu_ti_hook>; +using CpuTiList = boost::intrusive::list; /********* * Model *