Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Boost 1.59 is required nowadays, remove support for older versions.
[simgrid.git] / src / kernel / context / ContextBoost.cpp
index 690ab05..71274db 100644 (file)
@@ -40,22 +40,9 @@ BoostContext::BoostContext(std::function<void()>&& code, actor::ActorImpl* actor
 #else
     this->fc_ = boost::context::detail::make_fcontext(stack, smx_context_stack_size, BoostContext::wrapper);
 #endif
-
-  } else {
-#if BOOST_VERSION < 105600
-    this->fc_ = new boost::context::fcontext_t();
-#endif
   }
 }
 
-BoostContext::~BoostContext()
-{
-#if BOOST_VERSION < 105600
-  if (not get_stack())
-    delete this->fc_;
-#endif
-}
-
 void BoostContext::wrapper(BoostContext::arg_type arg)
 {
 #if BOOST_VERSION < 106100
@@ -82,9 +69,7 @@ void BoostContext::wrapper(BoostContext::arg_type arg)
 void BoostContext::swap_into(SwappedContext* to_)
 {
   BoostContext* to = static_cast<BoostContext*>(to_);
-#if BOOST_VERSION < 105600
-  boost::context::jump_fcontext(this->fc_, to->fc_, reinterpret_cast<intptr_t>(to));
-#elif BOOST_VERSION < 106100
+#if BOOST_VERSION < 106100
   boost::context::jump_fcontext(&this->fc_, to->fc_, reinterpret_cast<intptr_t>(to));
 #else
   BoostContext* ctx[2] = {this, to};