r/cpp • • May 09 '26

Any good tech talks leveraging statement expressions?

Lambdas do a great job in a lot of cases but sometimes you need a statement expression. Any good content on youtube?

14 Upvotes

33 comments sorted by

View all comments

Show parent comment

1

u/Gorzoid May 09 '26

Yeah at work we generally do std::move(my_value.foo()) simply because it's more likely to work as expected when x doesn't have ref qualified accessors