
15 Jul
2009
15 Jul
'09
7:21 a.m.
On Tue, Jul 14, 2009 at 7:37 PM, James Pritts<jbpritts@gmail.com> wrote:
Unfortunately I cannot grok boost::bind error, but this code seems really simple. If I change the code so that an int is passed to async_discovery, the program compiles. The problem seems to be centered around passing a boost::bind as a template argument. Any help would be appreciated.
<snip>
-Jimmy.
I can offer a solution rather than an explanation - make the compiler's job that bit easier by putting a boost::function in to simplify the template parameter: ads.async_discovery(boost::function<void()>(boost::bind(&test::do_it, t))); Compiles under Visual C++ 9.0 Stuart Dootson