copy constructor

From: Kittu (teehighest_at_gmail.com)
Date: 12/02/04


Date: 2 Dec 2004 05:57:06 -0800

In which situations, we need to overload copy constructors? What is
exactly practical and theoritically difference between using copy
constructor and assignment operator? Please give the complete answer
in detail as I am not getting satisfactory answer regarding this.



Relevant Pages

  • Re: writing drivers using C++
    ... destructors and default constructors as parts of the ... to overload something who's name doesn't quite describe it. ... having a class-type and their members and so on. ...
    (comp.os.linux.development.system)
  • Re: Does std::map provides a copy assignment operator?
    ... >> copy constructor and assignment operator are not inheritable. ... The compiler will generate a derived copy ... > constructor/assignment operator and these will call the base class ... > automatically generate Default Constructors, Destructors, Copy ...
    (microsoft.public.vc.stl)
  • Re: Does std::map provides a copy assignment operator?
    ... >> copy constructor and assignment operator are not inheritable. ... The compiler will generate a derived copy ... > constructor/assignment operator and these will call the base class ... > automatically generate Default Constructors, Destructors, Copy ...
    (microsoft.public.vc.stl)
  • Re: Does std::map provides a copy assignment operator?
    ... > copy constructor and assignment operator are not inheritable. ... > Since map inherits from xtree, it does not inherit xtree's copy ... You need to research under what circumstances the compiler will ... automatically generate Default Constructors, Destructors, Copy Constructors ...
    (microsoft.public.vc.stl)
  • Re: Why copy constructor is not called
    ... Copy constructors should use the syntax "Class". ... the assignment operator should take const reference arguments. ... here is a sample program that I'm wondering why copy constroctor is ... int, and then from this int using the int constructor to build new object ...
    (microsoft.public.vc.language)