#ifndef SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
#define SIMGRID_KERNEL_CONTEXT_CONTEXT_HPP
-#include "instr/instr_interface.hpp"
#include "src/internal_config.h"
#include "src/simix/smx_network_private.hpp"
bool iwannadie;
Context(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t process);
+ Context(const Context&) = delete;
+ Context& operator=(const Context&) = delete;
+
void operator()() { code_(); }
bool has_code() const { return static_cast<bool>(code_); }
smx_actor_t process() { return this->process_; }
XBT_PRIVATE void SIMIX_post_create_environment();
-XBT_PRIVATE simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(const char *name);
+XBT_PRIVATE simgrid::simix::ActorCodeFactory& SIMIX_get_actor_code_factory(std::string name);
#endif