From 275fa4bff6d153019b6914fed7127a7d919ca177 Mon Sep 17 00:00:00 2001 From: Eugen Wissner Date: Thu, 23 Jul 2026 01:01:03 +0200 Subject: Implement for loop --- boot/evaluator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'boot/evaluator.cc') diff --git a/boot/evaluator.cc b/boot/evaluator.cc index 77a56ad..4b37668 100644 --- a/boot/evaluator.cc +++ b/boot/evaluator.cc @@ -186,7 +186,7 @@ namespace elna::boot return std::visit([](auto value) -> std::optional { using T = std::decay_t; - if constexpr (std::is_integral_v) + if constexpr (std::is_integral_v && !std::is_same_v) { return constant_value{ ~value }; } -- cgit v1.2.3