12 May
2009
12 May
'09
11:41 p.m.
Peter Ã…berg wrote:
Anyone have a tip or pointer regarding how to implement a function queue with unique items?
You're right that we can't compare two boost::function objects, but it *is* permitted to compare a boost::function with an rvalue that could initialize it. If you make your push() method a template accepting an argument of arbitrary type, presumably you could compare each existing item with that new value before storing it into the deque.