Re: Copy Constructors and Assignment Operator, When should I use?
- From: "Alex Blekhman" <tkfx.REMOVE@xxxxxxxxx>
- Date: Mon, 3 Mar 2008 17:13:51 +0200
"rockdale" wrote:
Yes, it will copy everything, provided that set items have
proper
copy constructor.
for the ItemSet class, I do not have any user defined copy
cctor, do I
need one?
If the `ItemSet' class is defined as in your other post, then you
don't need explicit cctor.
class ItemSet{
ItemListA a;
ItemListB b;
...
};
The `ItemSet' class doesn't need [user defined] cctor either
since all its
members know how to copy themselves.
Alex
.
- References:
- Re: Copy Constructors and Assignment Operator, When should I use?
- From: rockdale
- Re: Copy Constructors and Assignment Operator, When should I use?
- From: Alex Blekhman
- Re: Copy Constructors and Assignment Operator, When should I use?
- From: rockdale
- Re: Copy Constructors and Assignment Operator, When should I use?
- Prev by Date: Re: GDI+ Question
- Next by Date: Re: DebugBreak continue issue
- Previous by thread: Re: Copy Constructors and Assignment Operator, When should I use?
- Next by thread: Re: Copy Constructors and Assignment Operator, When should I use?
- Index(es):
Relevant Pages
|