Subject: [boost] [bind]bind question
From: Max (more4less_at_[hidden])
Date: 2012-05-27 05:40:26
I have the following code:
bool do_something_conditional(int *handle, const boost::function<bool(int)>
bool pred_a(int handle);
bool pred_b(int handle, int n1, int n2);
bool do_something(int *handle, int n1, int n2)
boost::bind(&pred_b, _1, n1, n2)));
But it does not compile.
I have been not playing with bind stuff for some time. But I've reviewed the
doc and some of my old 'bind' code, it seems correct to me. The error
message, you know, is quite complicated for me to find a direct answer.
Could anybody please help me? Thanks in advance.
I'm using 1.39 with MS VS2008SP1