Let via take a functor by universal reference
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 4 May 2016 04:32:23 +0000 (21:32 -0700)
committerFacebook Github Bot 3 <facebook-github-bot-3-bot@fb.com>
Wed, 4 May 2016 04:35:24 +0000 (21:35 -0700)
commitd0ed189073b29b342ea68e2371d498b7fcabb791
treef505428a12cc7fc7b611a6acf2bf4b1929d384d3
parentf253e1e4ab710728cb4ae8a25c1fe14f58e3da0f
Let via take a functor by universal reference

Summary:
[Folly] Let `via` take a functor by universal reference.

And perfect-forward the functor to the call to `then`.

Reviewed By: fugalh

Differential Revision: D3255684

fb-gh-sync-id: 1b46a70fb9de88d21d785c0ce4d9dd3078829f13
fbshipit-source-id: 1b46a70fb9de88d21d785c0ce4d9dd3078829f13
folly/futures/Future-inl.h
folly/futures/helpers.h