Boost logo

Boost :

Subject: Re: [boost] Design conventions; passing functors
From: Joachim Faulhaber (afojgo_at_[hidden])
Date: 2008-11-06 12:42:57


2008/11/6 Steven Watanabe <watanabesj_at_[hidden]>:
>> No it doesn't. But any Combinator has to combine Codomain values.
>> I feel that this is expressed more precisely in definition (3).
>>
>
> I disagree. If I am not writing generic code,
>
> struct myCombiner {
> ... operator()(...) const { ... }
> };
>
> should be perfectly fine.
>
> Also, polymorphic function objects should be okay:
>
> struct myCombiner {
> template<class Codomain>
> ... operator()(...) const {... ]
> };
>
Interesting, thanx for the insight, Joachim


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