Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable unused copy constructor (cppcheck).
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 10 Aug 2018 14:38:47 +0000 (16:38 +0200)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Fri, 10 Aug 2018 14:38:47 +0000 (16:38 +0200)
src/kernel/context/Context.hpp

index dd4e482..674f02d 100644 (file)
@@ -65,6 +65,9 @@ public:
   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_; }