diff --git a/include/cosim/fmi/importer.hpp b/include/cosim/fmi/importer.hpp index ae2d2743..a15ba081 100644 --- a/include/cosim/fmi/importer.hpp +++ b/include/cosim/fmi/importer.hpp @@ -63,7 +63,6 @@ class importer : public std::enable_shared_from_this // Private constructors, to force use of factory functions. explicit importer(std::shared_ptr cache, bool disable_fmi_logging); - bool disable_fmi_logging; public: /** * Imports and loads an FMU. @@ -112,6 +111,7 @@ class importer : public std::enable_shared_from_this std::map> pathCache_; std::map> guidCache_; + bool disable_fmi_logging; }; diff --git a/include/cosim/orchestration.hpp b/include/cosim/orchestration.hpp index c60051d8..46886438 100644 --- a/include/cosim/orchestration.hpp +++ b/include/cosim/orchestration.hpp @@ -172,9 +172,9 @@ class model_uri_resolver class fmu_file_uri_sub_resolver : public model_uri_sub_resolver { public: - explicit fmu_file_uri_sub_resolver(bool disable_fmi_logging); + explicit fmu_file_uri_sub_resolver(bool disable_fmi_logging = false); - explicit fmu_file_uri_sub_resolver(std::shared_ptr cache, bool disable_fmi_logging); + explicit fmu_file_uri_sub_resolver(std::shared_ptr cache, bool disable_fmi_logging = false); std::shared_ptr lookup_model(const uri& modelUri) override;