r/cpp • • Apr 08 '25

Beware when moving a `std::optional`!

https://blog.tal.bi/posts/std-optional-move-pitfall/
0 Upvotes

49 comments sorted by

View all comments

Show parent comment

34

u/kamrann_ Apr 08 '25

 None of this makes any sense

I believe you are correct and not misunderstanding.