Fixed OneOf config check
This commit is contained in:
@ -66,7 +66,7 @@ template<typename T, T ... ALLOWED_VALUES>
|
|||||||
ConfigConstraintReturnType OneOf(typename ConfigWrapper<T>::value_t val)
|
ConfigConstraintReturnType OneOf(typename ConfigWrapper<T>::value_t val)
|
||||||
{
|
{
|
||||||
if (!((ALLOWED_VALUES == 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 {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user