|
|
Fredrik Eriksson wrote:
> Specifically, they facilitate move constructors
> which are much like copy constructors except that they may destructively
> alter the source of the "copy".
One of my problems with learning C++ is the number of places where,
instead of saying "This is what this feature does", people say "this is
how you use this feature." (Not unlike Perl, where there are all these
defaults that nobody uses because they're too complex to remember. :-)
What is a "move constructor"? When would you be "moving" some value? If
you destructively alter something with aliases, aren't you in trouble?
Isn't that what the whole "ownership" concept is supposed to prevent?
--
Darren New / San Diego, CA, USA (PST)
Post a reply to this message
|
|