Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[S4U] Mark s4u::Engine constructor as explicit
[simgrid.git] / include / simgrid / s4u / Engine.hpp
index 6451084..eabfef2 100644 (file)
@@ -27,7 +27,7 @@ namespace s4u {
 class XBT_PUBLIC Engine {
 public:
   /** Constructor, taking the command line parameters of your main function */
-  Engine(int* argc, char** argv);
+  explicit 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;