invoke and member-invoke tweaks
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 2 Jan 2018 01:05:00 +0000 (17:05 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 2 Jan 2018 01:20:30 +0000 (17:20 -0800)
commit1a50cb78590fabf164630808f1be23a9bef6bcc7
tree3df7341dff04ba1355efd56183524651d261126a
parent228c05ff964352538798bee101d6bf32d7940897
invoke and member-invoke tweaks

Summary:
[Folly] `invoke` and member-`invoke` tweaks.

* Direct `static_cast` v.s. `std::forward` is okay.
* Implement member-`invoke` in terms of `invoke` and extract most of it to a helper type, minimizing the code directly generated by the preprocessor.

Reviewed By: spalamarchuk

Differential Revision: D6644119

fbshipit-source-id: e58a83d7ff2dd71b0377d864ef089c34e0239c8d
folly/functional/Invoke.h