
6 Nov
2008
6 Nov
'08
5:35 p.m.
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