You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[C++] Add short-circuit version of logical Status AND #32080
This latter form is technically correct (in this case) because StdHash has no side effects and there is no real need to short-circuit. However, this can be very misleading. The compiler is allowed to reorder these statements as it wants. This led to trouble in #13232 because I suggested something like...
return Foo(value) & Bar(std::move(value));
Now, for a C++ expert, this may have been immediately obvious. However, I think we can simplify things by adding the && operator for Status to allow:
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.
Activity
github-actions commentedon Apr 7, 2026
This issue has been marked as stale because it has had no activity in the past 365 days. Please remove the stale label or comment below, or this issue will be closed in 14 days. If this improvement is still desired but has no current owner, please add the 'Status: needs champion' label.