Skip to content

Commit

Permalink
cut references to exception_wrapper::hasThrownException
Browse files Browse the repository at this point in the history
Summary: No such function exists.

Reviewed By: luciang

Differential Revision: D28276400

fbshipit-source-id: 57d9ede6df0570f2cc8b0a0b5bd77f2cb6be9fd7
  • Loading branch information
yfeldblum authored and facebook-github-bot committed May 8, 2021
1 parent 97e3d72 commit b246430
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions folly/ExceptionWrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,10 @@ class exception_wrapper final {
~exception_wrapper();

//! \post `!ptr || bool(*this)`
//! \post `hasThrownException() == bool(ptr)`
explicit exception_wrapper(std::exception_ptr const& ptr) noexcept;
explicit exception_wrapper(std::exception_ptr&& ptr) noexcept;

//! \pre `ptr` holds a reference to `ex`.
//! \post `hasThrownException() == true`
//! \post `bool(*this)`
//! \post `type() == typeid(ex)`
template <class Ex>
Expand All @@ -409,7 +407,6 @@ class exception_wrapper final {

//! \pre `typeid(ex) == typeid(typename decay<Ex>::type)`
//! \post `bool(*this)`
//! \post `hasThrownException() == false`
//! \post `type() == typeid(ex)`
//! \note Exceptions of types derived from `std::exception` can be implicitly
//! converted to an `exception_wrapper`.
Expand All @@ -422,7 +419,6 @@ class exception_wrapper final {

//! \pre `typeid(ex) == typeid(typename decay<Ex>::type)`
//! \post `bool(*this)`
//! \post `hasThrownException() == false`
//! \post `type() == typeid(ex)`
//! \note Exceptions of types not derived from `std::exception` can still be
//! used to construct an `exception_wrapper`, but you must specify
Expand Down

0 comments on commit b246430

Please sign in to comment.