diff --git a/include/blt/parse/argparse.h b/include/blt/parse/argparse.h index 2a37ba1..78cc880 100755 --- a/include/blt/parse/argparse.h +++ b/include/blt/parse/argparse.h @@ -341,7 +341,10 @@ namespace blt template inline T get(const std::string& key) { - return blt::arg_parse::get_cast(data[key]); + if constexpr (std::is_same_v) + return blt::arg_parse::get(data[key]); + else + return blt::arg_parse::get_cast(data[key]); } inline auto begin()