Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[S4U] Delete Engine move & copy constructors
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 1 Jun 2018 16:19:09 +0000 (18:19 +0200)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 1 Jun 2018 16:22:04 +0000 (18:22 +0200)
include/simgrid/s4u/Engine.hpp

index 767891b..6451084 100644 (file)
@@ -28,6 +28,9 @@ class XBT_PUBLIC Engine {
 public:
   /** Constructor, taking the command line parameters of your main function */
   Engine(int* argc, char** argv);
 public:
   /** Constructor, taking the command line parameters of your main function */
   Engine(int* argc, char** argv);
+  /** Currently, only one instance is allowed to exist. This is why you can't copy or move it */
+  Engine(const Engine&) = delete;
+  Engine(Engine&&)      = delete;
 
   ~Engine();
   /** Finalize the default engine and all its dependencies */
 
   ~Engine();
   /** Finalize the default engine and all its dependencies */