Subject: Re: [boost] [move] new rvalue reference emulation
From: Jeffrey Lee Hellrung, Jr. (jeffrey.hellrung_at_[hidden])
Date: 2011-04-11 18:31:56
On Mon, Apr 11, 2011 at 3:03 PM, Vicente BOTET <vicente.botet_at_[hidden]>wrote:
> > Message du 11/04/11 22:02
> > De : "Jeffrey Lee Hellrung, Jr."
> > A : boost_at_[hidden]
> > Copie à :
> > Objet : Re: [boost] [move] new rvalue reference emulation
> > On Mon, Apr 11, 2011 at 5:46 AM, Eric Niebler wrote:
> > > > On 4/10/2011 9:22 PM, Jeffrey Lee Hellrung, Jr. wrote:
> > > >>
> > > >> I have a follow-up to my original message regarding a typeless
> > > >> emulated rvalue reference. I was disappointed in the lack of
> > > >> feedback (other than Dave) on the original message, which might
> > > >> mean that those who took the time to parse the message didn't think
> > > >> it was worth pursuing;
> Yes sure. Not everyone is able to see as quickly as him when there is
> something really valuable ;-)
It's probably more likely that not everyone has as much time as Dave does ;)
What about renaming genrv to any_rv?
Yeah, that's probably a better name.
> Have you already thought about how this enhanced emulation could be used in
> a portable way on C++98 and C++0x compilers?
No, I haven't :( At this point, the easiest way to write portable code
seems to be to do an ugly "#ifndef BOOST_NO_RVALUE_REFERENCES / #else /
#endif" dance :( Which I would expect would make it largely inaccessible to
general users, mostly relegating this technique to libraries that want to
provide a more performance-friendly interface.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk