Boost logo

Boost Users :

Subject: Re: [Boost-users] Using Boost::Bind
From: David McCallum (dmccallum9_at_[hidden])
Date: 2011-06-29 12:32:00

Oops, that should have been:

void DClient::resolveHandler(int param)

boost::function<void (int)> functionPtr;
int tempInt = 12;

functionPtr = boost::bind(&DClient::resolveHandler, this, tempInt);

The final line will call resolveHandler with a parameter of 12, rather
than 67? Surely that can't be right?

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at