logoalt Hacker News

C++26: Structured Bindings in Conditions

9 pointsby jandeboevrietoday at 3:06 AM3 commentsview on HN

Comments

Panzerschrektoday at 6:36 AM

> if (const auto& [is_successful, error_message] = foo(n))

I don't like it. It's hard to reason what exactly serves as condition variable.

show 2 replies