Boost logo

Boost :

Subject: Re: [boost] [xint] Fourth release, requesting preliminary review again
From: David Abrahams (dave_at_[hidden])
Date: 2010-06-02 18:09:38


At Thu, 3 Jun 2010 00:53:23 +0300,
Marius Stoica 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.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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