@@ -81,8 +81,8 @@ class expected {
81
81
!is_function_v<_Tp> &&
82
82
!is_same_v<remove_cv_t <_Tp>, in_place_t > &&
83
83
!is_same_v<remove_cv_t <_Tp>, unexpect_t > &&
84
- !__unexpected::__is_unexpected <remove_cv_t <_Tp>>::value &&
85
- __unexpected::__valid_unexpected <_Err>::value
84
+ !__is_std_unexpected <remove_cv_t <_Tp>>::value &&
85
+ __valid_std_unexpected <_Err>::value
86
86
,
87
87
" [expected.object.general] A program that instantiates the definition of template expected<T, E> for a "
88
88
" reference type, a function type, or for possibly cv-qualified types in_place_t, unexpect_t, or a "
@@ -198,7 +198,7 @@ class expected {
198
198
199
199
template <class _Up = _Tp>
200
200
requires (!is_same_v<remove_cvref_t <_Up>, in_place_t > && !is_same_v<expected, remove_cvref_t <_Up>> &&
201
- !__unexpected::__is_unexpected <remove_cvref_t <_Up>>::value && is_constructible_v<_Tp, _Up>)
201
+ !__is_std_unexpected <remove_cvref_t <_Up>>::value && is_constructible_v<_Tp, _Up>)
202
202
_LIBCPP_HIDE_FROM_ABI constexpr explicit (!is_convertible_v<_Up, _Tp>)
203
203
expected(_Up&& __u)
204
204
noexcept (is_nothrow_constructible_v<_Tp, _Up>) // strengthened
@@ -357,7 +357,7 @@ class expected {
357
357
template <class _Up = _Tp>
358
358
_LIBCPP_HIDE_FROM_ABI constexpr expected& operator =(_Up&& __v)
359
359
requires (!is_same_v<expected, remove_cvref_t <_Up>> &&
360
- !__unexpected::__is_unexpected <remove_cvref_t <_Up>>::value &&
360
+ !__is_std_unexpected <remove_cvref_t <_Up>>::value &&
361
361
is_constructible_v<_Tp, _Up> &&
362
362
is_assignable_v<_Tp&, _Up> &&
363
363
(is_nothrow_constructible_v<_Tp, _Up> ||
@@ -648,7 +648,7 @@ class expected {
648
648
template <class _Tp , class _Err >
649
649
requires is_void_v<_Tp>
650
650
class expected <_Tp, _Err> {
651
- static_assert (__unexpected::__valid_unexpected <_Err>::value,
651
+ static_assert (__valid_std_unexpected <_Err>::value,
652
652
" [expected.void.general] A program that instantiates expected<T, E> with a E that is not a "
653
653
" valid argument for unexpected<E> is ill-formed" );
654
654
0 commit comments