|
Boost Users : |
From: Markus Schöpflin (markus.schoepflin_at_[hidden])
Date: 2002-08-15 08:08:05
Peter Dimov wrote:
>
[snip]
> A mistake, but not a stupid one. The boost::bind(bar, 0) subexpression is
> interpreted as a nested bind; that is, bind assumes that you want
> foo(bar(0)), but you actually want foo(bind(bar, 0)). You can "protect" the
> nested bind from being evaluated by using the helper function protect()
> defined in boost/bind/protect.hpp; see the last two paragraphs of
>
> http://www.boost.org/libs/bind/bind.html#nested_binds
Hah, yes of course! Thanks a lot, Peter!
Markus
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