[Cppcms-users] Implementing chat question
Brought to you by:
artyom-beilis
From: Barbu P. - G. <bar...@gm...> - 2012-08-09 18:45:22
|
Hi. I don't understand the bind() call when binding the arguments to chat::remove_context. chat::remove_context takes only one parameter, but there are binded two, how can that be possible? I'm talking about: booster::shared_ptr<cppcms::http::context> context=release_context(); waiters_.insert(context); context->async_on_peer_reset( bind( &chat::remove_context, booster::intrusive_ptr<chat>(this), context)); and: void remove_context(booster::shared_ptr<cppcms::http::context> context) { waiters_.erase(context); } -- Barbu Paul - Gheorghe Common sense is not so common - Voltaire Visit My GitHub profile to see my open-source projects - https://github.com/paullik |