| 1602 | detail::expected_enable_from_other<T, E, U, G, const U &, const G &> |
| 1603 | * = nullptr> |
| 1604 | explicit TL_EXPECTED_11_CONSTEXPR expected(const expected<U, G> &rhs) |
| 1605 | : ctor_base(detail::default_constructor_tag{}) { |
| 1606 | if (rhs.has_value()) { |
| 1607 | this->construct(*rhs); |
| 1608 | } else { |
| 1609 | this->construct_error(rhs.error()); |
| 1610 | } |
| 1611 | } |
| 1612 | |
| 1613 | template <class U, class G, |
| 1614 | detail::enable_if_t<(std::is_convertible<U const &, T>::value && |
nothing calls this directly
no test coverage detected