$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Boris (boriss_at_[hidden])
Date: 2008-03-14 08:29:01
On Fri, 14 Mar 2008 01:05:02 +0100, Steven Watanabe <watanabesj_at_[hidden]>
wrote:
> [...]The expression which you are creating in multiple stages is
>
> boost::bind(bar<T>, boost::bind(empty))()
>
> Bind tries to evaluates this as bar<T>(empty())
> rather than what you intended: bar<T>(empty)
>
> Try:
>
> foo(boost::protect(boost::bind(empty)));
>
> To prevent composition.
Thank you, it works!
Boris