Fixed OneOf config check

This commit is contained in:
2022-08-02 17:34:31 +02:00
parent 6129681a6d
commit 931c6d9f5d

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 {};
}