diff --git a/src/settings/SettingsManager.h b/src/settings/SettingsManager.h index 11c9d78d6..6b1afe5db 100644 --- a/src/settings/SettingsManager.h +++ b/src/settings/SettingsManager.h @@ -260,7 +260,7 @@ namespace storm { * @return The module. */ template - SettingsType getModule() { + SettingsType const& getModule() { static_assert(std::is_base_of::value, "Template argument must be derived from ModuleSettings"); return dynamic_cast(manager().getModule(SettingsType::moduleName)); }