• Eric Niebler's avatar
    don't slice std:: exceptions in exception_wrapper::handle when no handler is found · 1d883868
    Eric Niebler authored
    Summary:
    Given an exception_wrapper `ew` holding a `std::runtime_error`, the following assertion fails:
    
    ```
    try {
      ew.handle();
    } catch( std::runtime_error const & ) {
    } catch( std::exception const & ) {
      assert(false);
    }
    ```
    
    Reviewed By: simpkins
    
    Differential Revision: D9199924
    
    fbshipit-source-id: b6f90ccf269a1b58f0dd07723451ff34cde1d529
    1d883868
ExceptionWrapper-inl.h 20.5 KB