Don't allow Future::onError([](exception_wrapper&){}) to compile
authorSargun Vohra <sargunv@fb.com>
Mon, 7 Aug 2017 20:29:40 +0000 (13:29 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 7 Aug 2017 20:39:35 +0000 (13:39 -0700)
commit148df69fbab537463ea2a39276b60155b5c0d6bc
treebdf4dd80802c1aa61a8b9f6fe4acec79e130c6b0
parentd7d34a0926844dff48d958e0c980315341a26260
Don't allow Future::onError([](exception_wrapper&){}) to compile

Summary: `Future::onError` does not work with a function that takes `exception_wrapper&`, so it should not compile. `exception_wrapper`, `const exception_wrapper&`, and `exception_wrapper&&` are unaffected.

Reviewed By: yfeldblum

Differential Revision: D5556083

fbshipit-source-id: 45d096d9fee00322eeec6b9b9b1dcbef55cced03
folly/futures/Future-inl.h
folly/futures/Future.h