(Wangle) Actually support the universal reference used in whenAll
authorHannes Roth <hannesr@fb.com>
Wed, 5 Mar 2014 17:50:28 +0000 (09:50 -0800)
committerDave Watson <davejwatson@fb.com>
Mon, 10 Mar 2014 20:50:29 +0000 (13:50 -0700)
commitdacdff5d2c900f709259a18f91a8848ddd574848
treec20b7dc04962c7f24190c761720da9729ee100a9
parent920a14c76144ce1896c428ff41e00922b7baab38
(Wangle) Actually support the universal reference used in whenAll

Summary:
Need to use `std::decay` to actually support the universal reference.

The futures are moved in, and invalidated.

Test Plan: Test; does not compile before.

Reviewed By: hans@fb.com

FB internal diff: D1199841
folly/wangle/Future-inl.h
folly/wangle/Future.h
folly/wangle/test/FutureTest.cpp