fix collect for non-default-constructible types, for real this time
authorJames Sedgwick <jsedgwick@fb.com>
Tue, 21 Apr 2015 21:49:05 +0000 (14:49 -0700)
committerAlecs King <int@fb.com>
Mon, 27 Apr 2015 23:48:25 +0000 (16:48 -0700)
commit23bf239f3c5930d3ff40b21d9195fa520a427abd
tree1f11fb30896d4947ff18686ba536fffbd9992d69
parent82e3591a36262c575c2762d80d5d276e187208d7
fix collect for non-default-constructible types, for real this time

Summary:
this was a fun one. Add a specialized implementation that builds up the results in a map with their indices and aggregates them into a vector at the end

Test Plan: unit tests

Reviewed By: hans@fb.com

Subscribers: folly-diffs@, jsedgwick, yfeldblum, chalfant

FB internal diff: D2002444

Signature: t1:2002444:1429642589:ee5aa5e8c461db97a28642b9887b3158df317813
folly/futures/Future-inl.h
folly/futures/test/FutureTest.cpp