
30 Mar
2009
30 Mar
'09
4:23 p.m.
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 http://www.boostpro.com