
2 Jun
2010
2 Jun
'10
10:09 p.m.
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