Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2004-03-11 16:37:21

Douglas Gregor wrote:
> On Thursday 11 March 2004 10:27 am, Peter Dimov wrote:
>> Douglas Gregor wrote:
>>> The benefit is that we don't need to introduce a "function_equal" to
>>> compare functions and we can still choose whether to support
>>> (bind(f, _1) == bind(g, _1))(5)
>> But there's still the implicit assumption that not introducing
>> function_equal is a benefit. I don't see why this should be so clear
>> cut. What particular problems do you see with function_equal?
> I don't use string_equal for strings or shared_ptr_equal for
> shared_ptr's, so why should I do so for function objects?

Wait a minute. Which "I" are we speaking of here? function<> will use
function_equal, but the end users will not be required to even know about
its existence. If they want to define operator== for their function objects
and then compare them for equality, they are perfectly welcome.

Boost list run by bdawes at, gregod at, cpdaniel at, john at