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

Pages: 1-

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:02

yes, stop using shit languages on shit systems with shit libraries

Name: Anonymous 2014-03-23 11:05

And how did you guess the system from knowing what multiplatform language and multiplatform library I use...

Name: Anonymous 2014-03-23 11:07

>>3
MSVC

Name: Anonymous 2014-03-23 11:09

ou... still no actual programmers here?

Name: Anonymous 2014-03-23 11:09

What the fuck is this, I don't even. Some caveman language from prehistoric times?

Name: Anonymous 2014-03-23 11:13

>>5
you need a programmer >>1 to have programmers >>2-
ENTERPRISE QUALITY ``programmers'' are not programmers, they are ``coders''

Name: Anonymous 2014-03-23 11:13

Install Bluebottle. Use Oberon.

Name: Anonymous 2014-03-23 11:14

Install Mozart, use Oz

Name: Anonymous 2014-03-23 11:17

Install CC[1], use C

__________________________________
[1]: Any standard ISO/IEC compiler

Name: Anonymous 2014-03-23 11:20

Just wondering, doesn't std::move(server_socket) need a second argument?
the fuck C++?

Name: Anonymous 2014-03-23 11:22

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

Name: Anonymous 2014-03-23 11:24

I'm sure NSA did this ^^ =)

Name: Anonymous 2014-03-23 13:29

>>12
Because sepples templates are parameterizable by fucking anything, yet they are unable to check any assertions. The "is" and "static if" from the D language are lightyears ahead of the sepples monstrosity.

Name: Anonymous 2014-03-27 12:43

penises

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