Move the guts of try_and_catch into a detail namespace
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 22 Dec 2016 08:17:20 +0000 (00:17 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Dec 2016 08:18:02 +0000 (00:18 -0800)
commitc60d131b3e5942b31caa8b4b13c7f9bfa61b986a
tree6e47e176bd20fb80cb76dfe2256b482ea871af7e
parent8d510416da38bfc47d8a6fca5af333069a207cfa
Move the guts of try_and_catch into a detail namespace

Summary:
[Folly] Move the guts of `try_and_catch` into a `detail` namespace.

Just a bit cleaner this way. Also, now we always slice before returning the derived object, so the derived type never escapes.

Reviewed By: luciang

Differential Revision: D4361471

fbshipit-source-id: 5c9567d3c5480ee9943a85139b8f27ba3b9da2d6
folly/ExceptionWrapper.h