From 8bb58e968c73b28271e2ccd43fa43152ae0d25a7 Mon Sep 17 00:00:00 2001 From: 0xFEEDC0DE64 Date: Tue, 2 Aug 2022 17:34:31 +0200 Subject: [PATCH] Fixed OneOf config check --- src/configconstraints_base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {}; }