Boost logo

Boost Users :

Subject: Re: [Boost-users] problems with nested boost::bind and boost::asio
From: Igor R (boost.lists_at_[hidden])
Date: 2014-04-03 09:25:54


This is how you pass Packet instance (as a temporary, i.e. rvalue):

> handler(Packet(m_headerInBuffer.getShort(4), bytes_transferred,
> m_currReadBuffer));

And this is the signature of the function that expects Packet &, i.e. lvalue:

> void testPacket(Packet& packet) {}

It seems that they do not match.


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