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,6 +341,9 @@ namespace blt
template<typename T>
inline T get(const std::string& 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]);
}