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; }