Boost bind with asio::placeholders::error?

I think you should write boost::asio::placeholders::error instead of ::asio::placeholders::error Also, I don't understand the purpose of :: you have in front of the boost namespace.

I think you should write boost::asio::placeholders::error instead of ::asio::placeholders::error. Also, I don't understand the purpose of :: you have in front of the boost namespace.

I think you want boost::system::error_code: void func2 (const boost::system::error_code& error) { } and also this: ::boost::function f2 = ::boost::bind (&func2, boost::asio::placeholders::error); I find asio's placeholder stuff too verbose, so I'd write this instead: ::boost::function f2 = ::boost::bind (&func2, _1).

– Leandro Apr 27 '10 at 0:28 in libasio-doc/asio/examples/http/client/async_client. Cpp we have the type asio::error_code and the parameter asio::placeholders::error, and it works. – Leandro Apr 27 '10 at 0:32 You must be using an old version of boost, #include #include #include void func (const boost::system::error_code& error) { } int main () { boost::function f = boost::bind (&func, _1); // this doesn't work!

F (boost::asio::placeholders::error); return 0; } --- – Leandro Apr 27 '10 at 10:50.

I think you should write boost::asio::placeholders::error instead of ::asio::placeholders::error . Also, I don't understand the purpose of :: you have in front of the boost namespace.

I think you want boost::system::error_code.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions