use forward instead of move for universal references
authorSven Over <over@fb.com>
Sat, 23 Apr 2016 15:07:25 +0000 (08:07 -0700)
committerFacebook Github Bot 2 <facebook-github-bot-2-bot@fb.com>
Sat, 23 Apr 2016 15:20:24 +0000 (08:20 -0700)
commitd78429749bc315b744e1c7ae5f0969fbdf31ca3d
treec026f9f87b9ce09c919be76a7912ec3b0358bfc0
parent056ba7430f4a0eb5a75717a2947a789b831af87b
use forward instead of move for universal references

Summary:When dealing with universal references, std::move will move from
objects that are passed as lvalue references. Instead std::forward
should be used, which only moves from an object if it's passed
as rvalue reference.

Reviewed By: yfeldblum

Differential Revision: D3200402

fb-gh-sync-id: 14be071e8498dd64cb8b2583c0cc2dd383bfebb8
fbshipit-source-id: 14be071e8498dd64cb8b2583c0cc2dd383bfebb8
folly/Conv.h
folly/Subprocess.h
folly/futures/Future.h
folly/test/ApplyTupleTest.cpp
folly/test/MPMCQueueTest.cpp