Subject: Re: [boost] [xint] Boost.XInt formal review (concrete complaint)
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-03-07 12:18:35


Joel Falcou wrote:
> x just have a operator= taking a interge_expression<X> type whcich
> contains the whole a+b abstract syntax tree. From there, there is
> countless techniques to iterate over the AST, transform it or evaluate it
> as code.

There surely are, but a large integer library doesn't seem like a trivial
application. Even simple things like

x = a*b + c;
x += a*b*c;

don't seem entirely straightforward when the goal is to eliminate all
temporaries. So rewriting everything to use expression templates (properly)
could be quite an amount of work.