
20 Nov
2008
20 Nov
'08
4:28 p.m.
AMDG Yang Zhang wrote:
bind(twice, protect(bind(show, 0)))
Thanks, this works. Would anybody be able to explain what just happened? According to:
bind(twice, bind(show, 0))() is evaluated as twice(show(0)) You want: twice(bind(show, 0)) The protect prevents show from being evaluated immediately by Boost.Bind. In Christ, Steven Watanabe