This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [patch] : RFC : rvalue / move symantics
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Jonathan Wakely wrote:
| 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.
Yes, it can be :) and doing so is probably a good idea!
Chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)
iD8DBQFCPwPU3FpDzErifpIRAijJAJ0UvzneU5iy2pFhm1NNKib0FZJAHQCeOh0G
MZnG6DjW6q29xlpouxuqVrE=
=6ujy
-----END PGP SIGNATURE-----