Fixed OneOf config check

This commit is contained in:
2022-08-02 17:34:31 +02:00
parent 48ed9602b8
commit 8bb58e968c

View File

@ -66,7 +66,7 @@ template<typename T, T ... ALLOWED_VALUES>
ConfigConstraintReturnType OneOf(typename ConfigWrapper<T>::value_t val)
{
if (!((ALLOWED_VALUES == val) || ...))
tl::make_unexpected("Value not one of the allowed ones");
return tl::make_unexpected("Value not one of the allowed ones");
return {};
}