using bitwise operators booleans c++
is there any reason bitwise operators &, |, ^ "bool" values c++?
i infrequently run situations where i wish accurately twin conditions loyal (xor), i only pitch ^ user saving expression. i also infrequently wish tools condition evaluated presumably outcome loyal (rather short-circuiting), i & |. i also need amass boolean values sometimes, &= |= definitely useful.
i've gotten few carried eyebrows doing this, nonetheless formula still revealing cleaner otherwise. there any reason bools? there any difficult compilers give bad law this?
Comments
Post a Comment