exception_wrapper: now without undefined behavior
Summary: Converting from std::exception* to void* to T* (where T is not std::exception but a derived type) is undefined behavior (and will break with multiple or virtual inheritance). Luckily, there's no need for void* there at all. Also, don't force make_exception_wrapper to capture by value. Test Plan: exception_wrapper_test Reviewed By: marccelani@fb.com FB internal diff: D1308251 @override-unit-failures
Showing
Please register or sign in to comment