
9 Aug
2009
9 Aug
'09
10:32 p.m.
Scott McMurray wrote:
But what about this?
less<int> f; function
g = f; function h = f; Checking based on address won't be able to tell that g == h, since copies of f will be taken for lifetime reasons.
That's not a problem at all. Boost.function holds its content by copy. The real issue is that function objects aren't equality comparable. Function pointers are, but not function objects.