Boost logo

Boost Users :

Subject: Re: [Boost-users] fork() example asio 1_52_0
From: TONGARI (tongari95_at_[hidden])
Date: 2011-03-11 09:38:31


2011/3/11 Marco Piacentini <marcopiacenta_at_[hidden]>

> Hi...do you know what it means the parameters "_1" and "_2"?
>
> socket_.async_read_some(boost::asio::buffer(data_),boost::bind(&server::handle_read,
> this, _1, _2));
>

They're just Bind's placeholders for 1st and 2nd parameters respectively,
same as Asio's placeholders::error and placeholders::bytes_transferred in
this case.

HTH



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net