
20 Nov
2008
20 Nov
'08
4:17 p.m.
Steven Watanabe wrote:
AMDG
Yang Zhang wrote:
// ...but this does not compile. // bind(twice, bind(show, 0))();
#include
...
bind(twice, protect(bind(show, 0)))
Thanks, this works. Would anybody be able to explain what just happened? According to: http://www.boost.org/doc/libs/1_37_0/libs/bind/bind.html#nested_binds this is supposed to prevent something from being evaluated, but I can't tell what precisely was going on. I believe my question of understanding also ties into why their `apply` example was necessary.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Yang Zhang http://www.mit.edu/~y_z/