[patch] : RFC : rvalue / move symantics
Jonathan Wakely
cow@compsoc.man.ac.uk
Mon Mar 21 16:55:00 GMT 2005
On Mon, Mar 21, 2005 at 05:44:40PM +0100, Paolo Carlini wrote:
> Serious objections anyone?!? Otherwise, I'm going to apply the patch to
> v7-branch (after an additional round of testing) and proceed with these
> exciting improvements...
I'm afraid I've not had time to apply this patch and play with it,
despite being very interested in it.
Just a quick question, which I'd been meaning to check for myself ...
+ template<class _Tp>
+ struct __rvalref
+ {
+ _Tp& __ref;
+ __rvalref(_Tp& __inref) : __ref(__inref) { }
+ };
Could that ctor be explicit? If it's only ever constructed explicitly
by a call to __move_helper<_Tp>::__move() then it could be, but I
haven't looked long enough to know if that's true.
Obviously, whatever the answer to my question is it's not a reason to
reject Chris' patch.
jon
--
Let's remember that, fun though technology may be, it's not the important stuff.
- James Dennet
More information about the Libstdc++
mailing list