diff --git a/src/utility/settings.h b/src/utility/settings.h index 647b869f1..be38fb28a 100644 --- a/src/utility/settings.h +++ b/src/utility/settings.h @@ -37,11 +37,19 @@ namespace settings { { public: + /*! + * @brief Get value of a generic option. + */ + template + const T& get(const std::string &name) const { + return this->vm[name].as(); + } + /*! * @brief Get value of string option */ const std::string& getString(const std::string &name) const { - return this->vm[name].as(); + return this->get(name); } /*!