A compiler-generated implicit copy constructor uses assignment instead of initialization for copying pointers, enums, and built-in types; whereas it uses initialization for copying non-scalar user-defined types.
Reference: "C++ Gotchas" by Stephen C. Dewhurst, Addison-Wesley, 2002., p. 133.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment