This commit is contained in:
Pranav Srinivas Kumar 2020-04-23 07:36:22 -07:00
parent 4c69ebf3fe
commit 3734fc6fca

View File

@ -841,7 +841,7 @@ public:
* @throws std::logic_error if the option has no value * @throws std::logic_error if the option has no value
* @throws std::bad_any_cast if the option is not of type T * @throws std::bad_any_cast if the option is not of type T
*/ */
template <typename T = std::string> T get(std::string_view aArgumentName) { template <typename T = std::string> T get(std::string_view aArgumentName) const {
return (*this)[aArgumentName].get<T>(); return (*this)[aArgumentName].get<T>();
} }