ExceptionWrapper::with_exception variant, deducing exception type from functor type
authorYedidya Feldblum <yfeldblum@fb.com>
Wed, 25 Nov 2015 02:27:46 +0000 (18:27 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Wed, 25 Nov 2015 03:20:21 +0000 (19:20 -0800)
commit085c0a8da601091ec70d01e3a8d6bdbd8501afa6
treefba0f12cc502ca74f3d2f6d637435aa553bcc9cc
parente9df6f7912089f65e85bb1dc160cae431992f8e5
ExceptionWrapper::with_exception variant, deducing exception type from functor type

Summary: [Folly] `ExceptionWrapper::with_exception` variant deducing exception type from functor type.

From the `README.md`:

    // TODO(jsedgwick) infer exception type from the type of the function

Reviewed By: Gownta

Differential Revision: D2685579

fb-gh-sync-id: 158bcd030019f28b4f392d17167ab0bd67cc1edb
folly/ExceptionWrapper.h
folly/test/ExceptionWrapperTest.cpp