diff --git a/isettings.h b/isettings.h index c225118..85b16e5 100644 --- a/isettings.h +++ b/isettings.h @@ -40,13 +40,13 @@ public: * @brief instance This method return instance of the settings object * @return pointer to a settings object; */ - template - static ISettings* instance() { - static_assert (std::is_base_of::value, + template + static ISettings* instance(Args&&... args) { + static_assert (std::is_base_of::value, "the Settingstype type must be ISettings"); if(!_settings){ - _settings = new SettingsType(); + _settings = new SettingsType(std::forward(args)...); } return _settings;