diff --git a/src/configconstraints_base.h b/src/configconstraints_base.h index f854206..30472f6 100644 --- a/src/configconstraints_base.h +++ b/src/configconstraints_base.h @@ -66,7 +66,7 @@ template ConfigConstraintReturnType OneOf(typename ConfigWrapper::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 {}; }