From 3734fc6fca17a2a6e1ce08cd7741261bc247e11f Mon Sep 17 00:00:00 2001 From: Pranav Srinivas Kumar Date: Thu, 23 Apr 2020 07:36:22 -0700 Subject: [PATCH] Closes #74 --- include/argparse.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/argparse.hpp b/include/argparse.hpp index d1b0d684..701cd0a3 100644 --- a/include/argparse.hpp +++ b/include/argparse.hpp @@ -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 T get(std::string_view aArgumentName) { + template T get(std::string_view aArgumentName) const { return (*this)[aArgumentName].get(); }