Const-correctness for folly::exception_wrapper::with_exception with non-std::exception
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 29 Dec 2016 23:47:55 +0000 (15:47 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 30 Dec 2016 00:03:00 +0000 (16:03 -0800)
commit686092cb22fbe4ddb4ffefec9b9bf0ae000d2f68
tree0c6a66a90719e4d9f6f36fe04770123f7a031474
parent06649f434861ba1a287df67ce28486879a5cddc6
Const-correctness for folly::exception_wrapper::with_exception with non-std::exception

Summary:
[Folly] Const-correctness for `folly::exception_wrapper::with_exception` with non-`std::exception`.

This also lets us unify the various flavors of `with_exception` and `is_compatible_with`. And fix `is_compatible_with` for non-`exception` types.

Reviewed By: ericniebler

Differential Revision: D4364474

fbshipit-source-id: 417edfd45f7cfba952ce961559da67769b7c41bc
folly/ExceptionWrapper.h
folly/test/ExceptionWrapperTest.cpp