Skip to content

Commit

Permalink
Closes #74
Browse files Browse the repository at this point in the history
  • Loading branch information
p-ranav committed Apr 23, 2020
1 parent 4c69ebf commit 3734fc6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/argparse.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ class ArgumentParser {
* @throws std::logic_error if the option has no value
* @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>();
}

Expand Down

0 comments on commit 3734fc6

Please sign in to comment.