[15 / 0 / ?]
Quoted By:
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?
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?