Can Screen safely rely on the default versions of copy and assignment? If so, why? If not, why not
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:7| Question number:25
All Answers
total answers (1)
Yes, because all the data members of
`Screen`
are built-in types or`string`
, which can rely on synthesized versions for copy and assignment.