24 Apr
2009
24 Apr
'09
4:07 p.m.
In http://www.boost.org/doc/libs/1_38_0/doc/html/signals/tutorial.html, once I read: "The input iterators passed to the combiner transform dereference operations into slot calls" I realized that the maximum<T> combiner introduced earlier is implemented using: if (max_value < *first) max_value = *first; Which ends up calling the slot twice. In this case it's harmless since the slot has no side effect, but it may not be a good example to follow, or maybe it should be pointed out a little later when the combiner deref statement quoted above is made. Just my $0.02. Thanks, --DD