CC_CALLBACK_2 not std::bind directly

This commit is contained in:
Jason Xu 2014-04-25 17:32:21 +08:00
parent 5cc483276b
commit 42c374157d
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ void SIOClientImpl::handshake()
request->setUrl(pre.str().c_str());
request->setRequestType(HttpRequest::Type::GET);
request->setResponseCallback(std::bind(&SIOClientImpl::handshakeResponse, this, std::placeholders::_1, std::placeholders::_2));
request->setResponseCallback(CC_CALLBACK_2(SIOClientImpl::handshakeResponse, this));
request->setTag("handshake");
log("SIOClientImpl::handshake() waiting");