remove MoveWrapper from io/async/AsyncUDPServerSocket.h
authorSven Over <over@fb.com>
Sat, 16 Apr 2016 03:26:30 +0000 (20:26 -0700)
committerFacebook Github Bot 8 <facebook-github-bot-8-bot@fb.com>
Sat, 16 Apr 2016 03:35:19 +0000 (20:35 -0700)
commit9da32d8eb909c5b26e5456a3ed271b7c93655923
tree6ca7dcd486954bd88cf6f9ca89560893c7f6ed22
parent71f01fb8f37708b54e32d99aa9c2200744a7ba78
remove MoveWrapper from io/async/AsyncUDPServerSocket.h

Summary:This is the last place in folly that uses MoveWrapper (other than
the MoveWrapper implementation itself and its tests, of course).

Instead of using a MoveWrapper, the object in question is moved
into the lambda using C++14 syntax, and the lambda is moved in a
call to EventBase::runInEventBaseThread which is possible now
that the EventBase methods accept non-copyable callbacks.

Reviewed By: yfeldblum

Differential Revision: D3169316

fb-gh-sync-id: 2dcb1a523ac417f4619c607898e58b572648e3da
fbshipit-source-id: 2dcb1a523ac417f4619c607898e58b572648e3da
folly/io/async/AsyncUDPServerSocket.h