r/cpp • u/pavel_v • Apr 16 '26
C++26: Structured bindings in conditions
https://www.sandordargo.com/blog/2026/04/15/cpp26-structured-bindings-condition
60
Upvotes
r/cpp • u/pavel_v • Apr 16 '26
View all comments
Show parent comment
2
u/EdwinYZW Apr 16 '26
But in your case, is_successful must be boolean. What would you do if is_successful is an integer or a reference to an object?