http://www.boost.org/doc/libs/1_50_0/libs/bind/bind.html#with_member_pointers
Regards,
William L.
On Fri, Aug 10, 2012 at 2:45 AM, Barbu Paul - Gheorghe <
bar...@gm...> wrote:
> 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
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|