mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 15:14:39 +00:00
Complete "remainig" backward compatibility
This commit is contained in:
parent
6dfaa1c20c
commit
0195a5065c
@ -836,7 +836,8 @@ private:
|
|||||||
return std::any_cast<T>(mDefaultValue);
|
return std::any_cast<T>(mDefaultValue);
|
||||||
} else {
|
} else {
|
||||||
if constexpr (details::is_container_v<T>)
|
if constexpr (details::is_container_v<T>)
|
||||||
return any_cast_container<T>(mValues);
|
if (!mAcceptsOptionalLikeValue)
|
||||||
|
return any_cast_container<T>(mValues);
|
||||||
}
|
}
|
||||||
throw std::logic_error("No value provided for '" + mNames.back() + "'.");
|
throw std::logic_error("No value provided for '" + mNames.back() + "'.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user