Hacker News new | ask | show | jobs
by mattnewport 3155 days ago
You can still write the former and it's just fine.
1 comments

Except, I need to think the latter?
Not for a Plain Old Data (POD) type. You need to think about the latter if you're manually managing memory or OS resources in your class (which should be rare) or you're trying to optimize performance when you have members that can be moved more cheaply than copied (usually because they manage memory) which should also usually be rare and the result of identifying a performance issue through profiling.