|
Boost : |
From: David Abrahams (dave_at_[hidden])
Date: 2002-12-06 16:21:06
François Wanadoo <francois.amelie_at_[hidden]> writes:
> Hello Boosters
>
> I am currently developing some template algorithm and had some trouble
> using BCCL. I have an algorithm using a unary function as one of its
> template parameter but I don't care about the result type of this unary
> function (like the for_each standard algo). I can't use the
> UnaryFunctionConcept because you have to stipulate the result type. What do
> you think about creating a boost::AnyType to indicate that we don't care
> about a type in a template specialization. A very simple partial
> specialization of UnaryFunctionConcept would lead to:
...
> I am waiting for your remarks, thank you for reading.
Briefly,
"that's a different concept; you should make your own checker for
it."
UnaryFunctionConcept is fine as is; making this change would
complicate it and its documentation.
-- David Abrahams dave_at_[hidden] * http://www.boost-consulting.com Boost support, enhancements, training, and commercial distribution
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk