parent
f079c41118
commit
2662b06099
|
@ -105,7 +105,15 @@ public:
|
||||||
OPT<ValueType> Get( std::string aPath ) const
|
OPT<ValueType> Get( std::string aPath ) const
|
||||||
{
|
{
|
||||||
if( OPT<nlohmann::json> ret = GetJson( std::move( aPath ) ) )
|
if( OPT<nlohmann::json> ret = GetJson( std::move( aPath ) ) )
|
||||||
return ret->get<ValueType>();
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
return ret->get<ValueType>();
|
||||||
|
}
|
||||||
|
catch( ... )
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return NULLOPT;
|
return NULLOPT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue