Boost logo

Boost :

Subject: Re: [boost] [xint] Fourth release, requesting preliminary review again
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-06-03 00:33:15


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 06/02/2010 06:09 PM, David Abrahams wrote:

>>> Would that make the documentation easier to read? I don't see any
>>> other benefit to using it here; there are only three optional
>>> parameters, and two of them have the same type (bool) so they
>>> couldn't benefit from Boost.Parameter's automatic deduction.
>>
>> Why not ? As the parameter docs points out having two bool
>> parameters can get confusing. And i don't like having to specify
>> the allocator every time . Of course is't just some syntactic
>> sugar.
>
> bools are the easiest type in the world to eliminate the “same type”
> problem with. Just use enums. Then deduced template arguments
> become beautiful.

Ah, yes... thanks. I'm not sure whether there's enough call to use
Boost.Parameter for the XInt library, but if there is, that will make it
a lot more elegant.
- --
Chad Nelson
Oak Circle Software, Inc.
*
*
*
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwHMIsACgkQp9x9jeZ9/wTHegCfW+kRtqGi5G3PM9bxoapHxwCJ
gOEAn3i5ecUbcDl0fAfqu7EX/vPUEu11
=OgD/
-----END PGP SIGNATURE-----


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