- SwappedContext(std::function<void()> code, void_pfn_smxprocess_t cleanup_func, smx_actor_t get_actor,
- SwappedContextFactory* factory);
+ SwappedContext(std::function<void()>&& code, smx_actor_t get_actor, SwappedContextFactory* factory);
+ SwappedContext(const SwappedContext&) = delete;
+ SwappedContext& operator=(const SwappedContext&) = delete;