Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

boost::asio std::move on socket

Name: Anonymous 2014-03-23 10:50

When calling this:

std::thread(create_session, server_numOfThreads, std::move(server_socket));

I get error:
error C2248: 'boost::asio::basic_io_object<SocketService,true>::basic_io_object' : cannot access private member declared in class 'boost::asio::basic_io_object<SocketService,true>'

From googling I found, that MSVC version of boost had bug with not defining BOOST_ASIO_HAS_MOVE properly, but after defining it explicitly i still can't move the socket object.

Any ideas?

Name: Anonymous 2014-03-23 11:22

also, why boost::asio::basic_io_object<SocketService,true>?
true is not a type!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List