This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] : RFC : rvalue / move symantics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]