Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

A move constructor/operator for POD or primitive types doesn't make any sense in the first place though (also AFAIK an object that contains a std::string - like Person - is definitely not a POD?). Even if Person had a manually provided move-constructor and move-assignment-operator, a move would still perform a flat copy from the source to the destination object.


Correct on all accounts. It is definitely not a POD nor a standard layout type (the modern version of POD).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: