Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
less MSG and less process
[simgrid.git] / src / mc / Session.hpp
index 3a79387..06f12de 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2019. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2016-2020. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -21,7 +21,7 @@ namespace mc {
  *  algorithms should be able to be written in high-level languages
  *  (e.g. Python) using bindings on this interface.
  */
-class Session {
+class XBT_PUBLIC Session {
 private:
   std::unique_ptr<ModelChecker> model_checker_;
   std::shared_ptr<simgrid::mc::Snapshot> initial_snapshot_;
@@ -38,7 +38,7 @@ public:
    *
    *  The code is expected to `exec` the model-checked application.
    */
-  Session(const std::function<void()>& code);
+  explicit Session(const std::function<void()>& code);
 
   ~Session();
   void close();