Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[sonar] Replace redundant type with "auto" (include/ and src/).
[simgrid.git] / src / kernel / context / ContextBoost.cpp
index f7d76cbc3186d4bf24fe3792ab0eaf35c2b3ae99..37aa9e8a1f85011ded2595b0fd2f24158fc141a2 100644 (file)
@@ -51,7 +51,7 @@ void BoostContext::wrapper(BoostContext::arg_type arg)
 
 void BoostContext::swap_into_for_real(SwappedContext* to_)
 {
-  BoostContext* to = static_cast<BoostContext*>(to_);
+  auto* to = static_cast<BoostContext*>(to_);
 #if BOOST_VERSION < 106100
   boost::context::jump_fcontext(&this->fc_, to->fc_, reinterpret_cast<intptr_t>(to));
 #else