add ability for std::string in args.get<T>

v1
Brett 2023-10-09 21:50:41 -04:00
parent 48095f5c41
commit fbd067e69e
1 changed files with 4 additions and 1 deletions

View File

@ -341,7 +341,10 @@ namespace blt
template<typename T> template<typename T>
inline T get(const std::string& key) inline T get(const std::string& key)
{ {
return blt::arg_parse::get_cast<T>(data[key]); if constexpr (std::is_same_v<T, std::string>)
return blt::arg_parse::get<T>(data[key]);
else
return blt::arg_parse::get_cast<T>(data[key]);
} }
inline auto begin() inline auto begin()