Boost logo

Boost Users :

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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net