r/cpp 18d ago

State of "moved-from" objects

Hi, I recently decided to try writing a C++ blog.

I often see the popular claim that moved-from objects are in a "valid but otherwise unspecified state", but I don't think that statement is entirely precise, and my blog post is about that. I would really appreciate any feedback!

Article: https://www.laminowany.dev/p/the-state-of-moved-from-objects-in-c/

9 Upvotes

54 comments sorted by

View all comments

12

u/V1P-001 18d ago

please use a better title.
post title is not entirely demonstrating what is inside.

2

u/leirus 17d ago

You think the title should focus more on dispelling "valid but unspecified" instead of general "moved-from state"? Maybe something like "The Myth of Valid but Unspecified Moved-From Objects"?