Commit a9ff35f4 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Cut Try ctor taking std::exception_ptr

Summary:
[Folly] Cut `Try` ctor taking `std::exception_ptr`.

It is legacy, from a time before `exception_wrapper`.

Reviewed By: marshallcline

Differential Revision: D8110107

fbshipit-source-id: 2d8f4d56fdf1043012d72813a8686a8d02392a0b
parent 5556aa3d
......@@ -106,19 +106,6 @@ class Try {
: contains_(Contains::EXCEPTION),
e_(std::move(e)){}
// clang-format off
/*
* DEPRECATED
* Construct a Try with an exception_pointer
*
* @param ep The exception_pointer. Will be rethrown.
*/
[[deprecated("use Try(exception_wrapper)")]]
explicit Try(std::exception_ptr ep) noexcept
: contains_(Contains::EXCEPTION),
e_(exception_wrapper::from_exception_ptr(ep)) {}
// clang-format on
// Move constructor
Try(Try<T>&& t) noexcept(std::is_nothrow_move_constructible<T>::value);
// Move assigner
......@@ -374,18 +361,6 @@ class Try<void> {
: hasValue_(false),
e_(std::move(e)){}
// clang-format off
/*
* DEPRECATED
* Construct a Try with an exception_pointer
*
* @param ep The exception_pointer. Will be rethrown.
*/
[[deprecated("use Try(exception_wrapper)")]] explicit Try(
std::exception_ptr ep) noexcept
: hasValue_(false), e_(exception_wrapper::from_exception_ptr(ep)) {}
// clang-format on
// Copy assigner
Try& operator=(const Try<void>& t) noexcept {
hasValue_ = t.hasValue_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment