
David Abrahams wrote:
on Mon Apr 02 2007, "Eric Lemings" <lemings-AT-roguewave.com> wrote:
Expression templates sound very interesting. Could you give a quick summary or a link perhaps?
This is the canonical source:
http://osl.iu.edu/~tveldhui/papers/Expression-Templates/exprtmpl.html
Hmm, isnt that just boost::lambda? I haven't used boost::lambda much yet, and i am not really proficient in functional programmign either, but could not the example form the page above: int main() { DExpr<DExprIdentity> x; // Placeholder evaluate(x/(1.0+x), 0.0, 10.0); return 0; } be written in boost:lambda as follows ? int main() { evaluate(_1/(1.0+_1), 0.0, 10.0); return 0; } If yes, what exactly can expression templates do that boost lambda cannot ? Michael Lacher