Boost logo

Boost :

Subject: Re: [boost] [xint] Boost.XInt formal review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2011-03-05 16:31:03


On Sat, 5 Mar 2011 13:12:34 -0500
Gordon Woodhull <gordon_at_[hidden]> wrote:

>> Since I had to_string and to_binary, a set of to_integer functions
>> would have been ideal. But to *what* integer? The type is a template
>> with many options. The best I could come up with would have required
>> client code like this:
>>
>> value = to_integer<integer>(...)
>>
>> Making those constructors eliminated the need to specify a type
>> parameter to a function, allowing this instead:
>>
>> value = integer(...)
>
> Don't you still have to specify any template parameters here?

You would for the type, except that I'm fairly certain everyone will
typedef it to a simple name, or use the predefined xint::integer and
xint::nothrow_integer types.

-- 
Chad Nelson
Oak Circle Software, Inc.
*
*
*



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk