]> AND Public Git Repository - simgrid.git/blobdiff - src/kernel/context/Context.hpp
Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Don't list the possible routings in DTD. We want to add more w/o changing the DTD
[simgrid.git] / src / kernel / context / Context.hpp
index 7dc642024ed98331cb0646e675fbcac2a8d190b5..be67dd6a6f2ebc8d10fa2a93211ee83d755033dd 100644 (file)
@@ -34,7 +34,7 @@ public:
 protected:
   template <class T, class... Args> T* new_context(Args&&... args)
   {
-    T* context = new T(std::forward<Args>(args)...);
+    auto* context = new T(std::forward<Args>(args)...);
     context->declare_context(sizeof(T));
     return context;
   }