Fix 1/2 of exception_wrapper under MSVC
authorChristopher Dykes <cdykes@fb.com>
Thu, 13 Apr 2017 19:45:06 +0000 (12:45 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 13 Apr 2017 19:58:58 +0000 (12:58 -0700)
commit8a56900338f3fccf82a35f5e4de9e9680abb05ad
treeec727f7cd5fcd70b597e770a04b28768ebc283b0
parente7231fdbd91f883b0e16e7ea3505d8233612885c
Fix 1/2 of exception_wrapper under MSVC

Summary:
MSVC didn't like referring to members of `exception_wrapper` in the initializer for a `static constexpr` field directly in `exception_wrapper`, so shift the initialization to the actual definition of the fields.
As the fields are only referred to via their address, dropping the `constexpr` loses nothing.

Reviewed By: ericniebler

Differential Revision: D4873939

fbshipit-source-id: 30b690b1ab3f2f7a25b9dc4863b46f64c811797d
folly/ExceptionWrapper.cpp
folly/ExceptionWrapper.h