add ability for std::string in args.get<T>
parent
48095f5c41
commit
fbd067e69e
|
@ -341,6 +341,9 @@ namespace blt
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline T get(const std::string& key)
|
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]);
|
return blt::arg_parse::get_cast<T>(data[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue