Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make factory_initializer a static member of ContextFactory.
[simgrid.git] / src / kernel / context / ContextBoost.hpp
index 8284fc9835f04679906687401c305e0530b9ddc4..5a877c4ee47c47422190d0b30b38d2086b97f3bb 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015-2020. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2015-2022. 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. */
@@ -22,7 +22,6 @@
 #include <xbt/parmap.hpp>
 
 #include "src/internal_config.h"
-#include "src/kernel/context/Context.hpp"
 #include "src/kernel/context/ContextSwapped.hpp"
 
 namespace simgrid {
@@ -36,11 +35,11 @@ public:
 
 private:
 #if BOOST_VERSION < 106100
-  boost::context::fcontext_t fc_;
-  typedef intptr_t arg_type;
+  boost::context::fcontext_t fc_{};
+  using arg_type = intptr_t;
 #else
-  boost::context::detail::fcontext_t fc_;
-  typedef boost::context::detail::transfer_t arg_type;
+  boost::context::detail::fcontext_t fc_{};
+  using arg_type = boost::context::detail::transfer_t;
 #endif
 
   XBT_ATTRIB_NORETURN static void wrapper(arg_type arg);