
14 Mar
2008
14 Mar
'08
12:29 p.m.
On Fri, 14 Mar 2008 01:05:02 +0100, Steven Watanabe
[...]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