Re: Should this code compile?
From: BigMan (BigMan_at_abv.bg)
Date: 02/23/05
- Next message: zeotherm: "Re: Exception Handling Critique ..."
- Previous message: Stewart Gordon: "Re: [OT] PERT diagrams"
- In reply to: Rolf Magnus: "Re: Should this code compile?"
- Next in thread: Rolf Magnus: "Re: Should this code compile?"
- Reply: Rolf Magnus: "Re: Should this code compile?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 23 Feb 2005 10:38:21 -0800
Yes, the copy ctor DOES change the original - it transfers ownership of
a resource that is too expensive to copy (e.g. a huge amount of
memory).
All this stuff about copy initilialization, direct initialization and
the like seem to me rather silly... Most compilers will NOT call the
copy ctor anyway in order to compile the above piece of code, so why
should the standard require that the copy ctor be callable?!
This and other such requirements should be relaxed in order to make the
language even more powerful!
- Next message: zeotherm: "Re: Exception Handling Critique ..."
- Previous message: Stewart Gordon: "Re: [OT] PERT diagrams"
- In reply to: Rolf Magnus: "Re: Should this code compile?"
- Next in thread: Rolf Magnus: "Re: Should this code compile?"
- Reply: Rolf Magnus: "Re: Should this code compile?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|