Boost logo

Boost :

Subject: Re: [boost] [xint] Fourth release, requesting preliminary review again
From: Scott McMurray ([hidden])
Date: 2010-06-04 09:15:18

On 4 June 2010 09:10, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
> On the minus side, it looks like every function will have to be a
> template, which is something that I tried very hard to avoid in previous
> implementations. It'll be fast, but if a program uses more than one
> combination of options, the size will increase greatly. The saving
> grace, I suppose, is that there shouldn't be much need to use too many
> option combinations.

Would it not be possible to still keep the math parts in (internal)
non-templated functions? It feels like the duplication should mostly
be in the interface parts.

For instance, a single addition function could take 2 ranges of
pointers and perform all the addition logic independently of the
template parameters. Then the various templates would arrange the
storage properly, call the function, and translate any errors
appropriately (not that there'd be any errors for addition, though I
suppose there might be a carry).

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