X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8bc85164acb335cf909052b966b2ee4932e06cd7..539af86e870c62ba4a28b5b4e0cedd252881dfb0:/src/kernel/context/Context.hpp?ds=sidebyside diff --git a/src/kernel/context/Context.hpp b/src/kernel/context/Context.hpp index 7dc642024e..f1aa12bc48 100644 --- a/src/kernel/context/Context.hpp +++ b/src/kernel/context/Context.hpp @@ -9,6 +9,7 @@ #include "simgrid/forward.h" #include "src/kernel/activity/ActivityImpl.hpp" +#include #include #include @@ -18,7 +19,7 @@ namespace context { class XBT_PUBLIC ContextFactory { public: - explicit ContextFactory() {} + explicit ContextFactory() = default; ContextFactory(const ContextFactory&) = delete; ContextFactory& operator=(const ContextFactory&) = delete; virtual ~ContextFactory(); @@ -34,7 +35,7 @@ public: protected: template T* new_context(Args&&... args) { - T* context = new T(std::forward(args)...); + auto* context = new T(std::forward(args)...); context->declare_context(sizeof(T)); return context; } @@ -101,12 +102,10 @@ XBT_PRIVATE ContextFactory* boost_factory(); } // namespace kernel } // namespace simgrid -typedef simgrid::kernel::context::ContextFactory *smx_context_factory_t; - XBT_PRIVATE void SIMIX_context_mod_init(); XBT_PRIVATE void SIMIX_context_mod_exit(); #ifndef WIN32 -XBT_PUBLIC_DATA unsigned char sigsegv_stack[SIGSTKSZ]; +XBT_PUBLIC_DATA std::array sigsegv_stack; #endif #endif