From 2d25dd503a76056fefad428779bf56bcedd29ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Gil=20de=20G=C3=B3mez=20P=C3=A9rez?= Date: Tue, 11 Aug 2026 18:41:26 +0300 Subject: [PATCH] Solved: 03 - Operators --- modules/01_fundamentals/src/operators.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/01_fundamentals/src/operators.cpp b/modules/01_fundamentals/src/operators.cpp index cc7c894..3d24056 100644 --- a/modules/01_fundamentals/src/operators.cpp +++ b/modules/01_fundamentals/src/operators.cpp @@ -20,10 +20,12 @@ auto count_set_bits(const std::uint8_t value) -> int { } auto logical_and(const bool lhs, const bool rhs) -> bool { + // NOTE: && can't be used return (lhs & rhs) == 1; } auto logical_or(const bool lhs, const bool rhs) -> bool { + // NOTE: || can't be used return (lhs | rhs) == 1; }