Boost logo

Boost :

Subject: Re: [boost] [proto] transforms && rvalue refs
From: Eric Niebler (eric_at_[hidden])
Date: 2009-03-30 12:23:55

troy d. straszheim wrote:
> I'm playing with proto on gcc 4.3 with c++0x enabled and trying to see
> if I can use rvalue refs inside callable transforms, to tell what
> is/isn't temporary while transforming an expression. I have a
> different way to do this, involving embedding the 'rvalueness' of an
> object in its type... yuck. Hopefully something better is out there.

Using expression templates to eliminate unnecessary temporaries is a
well understood idiom; it's why expression templates were invented in
the first place. You don't need rvalue references at all.

Could you say more about what you are trying to do and why you think
rvalue references are needed?

Eric Niebler
BoostPro Computing

Boost list run by bdawes at, gregod at, cpdaniel at, john at