Browse Source

Return reference to settings module, not a copy

Former-commit-id: 0a5befee57
tempestpy_adaptions
hbruintjes 9 years ago
parent
commit
556b8e8726
  1. 2
      src/settings/SettingsManager.h

2
src/settings/SettingsManager.h

@ -260,7 +260,7 @@ namespace storm {
* @return The module.
*/
template<typename SettingsType>
SettingsType getModule() {
SettingsType const& getModule() {
static_assert(std::is_base_of<storm::settings::modules::ModuleSettings, SettingsType>::value, "Template argument must be derived from ModuleSettings");
return dynamic_cast<SettingsType const&>(manager().getModule(SettingsType::moduleName));
}

Loading…
Cancel
Save