X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/504e8ecc4d4245655dafaae23e56e64260b746ad..985e0a5509e230076d22095da54dd0123d2afe5e:/include/xbt/promise.hpp diff --git a/include/xbt/promise.hpp b/include/xbt/promise.hpp index 83f4e5336c..dc19907471 100644 --- a/include/xbt/promise.hpp +++ b/include/xbt/promise.hpp @@ -1,5 +1,4 @@ -/* Copyright (c) 2015-2021. The SimGrid Team. - * All rights reserved. */ +/* Copyright (c) 2015-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. */ @@ -18,8 +17,7 @@ #include #include -namespace simgrid { -namespace xbt { +namespace simgrid::xbt { /** A value or an exception (or nothing) * @@ -127,7 +125,6 @@ template inline void set_promise(P& promise, F&& future) { fulfill_promise(promise, [&future] { return std::forward(future).get(); }); } -} -} +} // namespace simgrid::xbt #endif