Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
MC: complete workaround in the error msg seen on modern systems
[simgrid.git] / src / mc / Session.hpp
index 3a79387..ab21a05 100644 (file)
@@ -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();