|
Boost : |
From: Matthias Troyer (troyer_at_[hidden])
Date: 2003-05-07 12:55:36
On Thursday, May 1, 2003, at 05:19 PM, Gennaro Prota wrote:
> On Thu, 1 May 2003 11:01:05 +0200, Matthias Troyer
> <troyer_at_[hidden]> wrote:
>
>> I would like to propose to add those function objects to the
>> functional.hpp header of Boost, since this header already contains
>> other improvements to Sec. 20.3 of the standard.
>
> Sorry if this reply is a little terser than it should be but I really
> don't have time for a longer talk. Hopefully the point will be clear
> despite the scarcity of words: let us not imitate the poor
> partitioning of some standard headers. We already have to include
> something like <algorithm> to get a simple std::min/max. It wouldn't
> be exciting to have a similar situation for functional.hpp (even more
> so because of all the type-traits and compiler workarounds stuff that
> it involves)
>
>
> If I had to choose a title for this, I would opt for "Beware of
> logical cohesion" ;-)
That's a good point. I have prepared a version separate from
functional.hpp and posted it on our web server:
http://www.comp-phys.org/software/function_objects/
Matthias
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk