Update 2024-03-27: Greatly expanded the "Samples" page and renamed it to "Glossary".
Update 2024-04-04: Added 5 million mid-2011 posts from the k47 post dump. Browse (mostly) them here.
Update 2024-04-07: Added ~400 October 2003 posts from 4chan.net. Browse them here.

Welcome to Oldfriend Archive, the official 4chan archive of the NSA. Hosting ~170M text-only 2003-2014 4chan posts (mostly 2006-2008).
[15 / 0 / ?]

[1395586237] boost::asio std::move on socket

No.958243 View ViewReplyOriginalReport
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?