$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] [signals] maximum combiner example calls slot twice
From: Dominique Devienne (ddevienne_at_[hidden])
Date: 2009-04-24 14:04:11
On Fri, Apr 24, 2009 at 12:41 PM, Frank Mori Hess <fmhess_at_[hidden]> wrote:
> On Friday 24 April 2009, Dominique Devienne wrote:
>> Which ends up calling the slot twice.
>
> Dereferencing a slot call iterator multiple times only runs the slot once.
> After that, it returns a cached copy of the return value.
Thanks for the precision, and correcting my invalid assumption.
I missed the caching property of slot call iterators in the doc. Thanks, --DD