Fixed OneOf config check
This commit is contained in:
1 parent
6129681a6d
commit
931c6d9f5d
1 file changed
+1
-1
@@ -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 {};
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user