From fa7fba6f03cb93b8ed8f328dd578e97f81f5e20f Mon Sep 17 00:00:00 2001 From: Christian Heinrich Date: Fri, 1 Jun 2018 18:19:09 +0200 Subject: [PATCH] [S4U] Delete Engine move & copy constructors --- include/simgrid/s4u/Engine.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/simgrid/s4u/Engine.hpp b/include/simgrid/s4u/Engine.hpp index 767891b124..6451084dcc 100644 --- a/include/simgrid/s4u/Engine.hpp +++ b/include/simgrid/s4u/Engine.hpp @@ -28,6 +28,9 @@ class XBT_PUBLIC Engine { 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 */ -- 2.20.1