$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Design conventions; passing functors
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-11-06 12:35:21
AMDG
Joachim Faulhaber wrote:
>> In other words, does Combinator really have to be a template?
>>
> 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 {... ]
};
In Christ,
Steven Watanabe