File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -610,6 +610,7 @@ struct __is_std_optional<optional<_Tp>> : true_type {};
610
610
template <class _Tp , class = void >
611
611
struct __optional_iterator_aliases {};
612
612
613
+ # if _LIBCPP_STD_VER >= 26
613
614
// disallow T (&)() and T (&)[]
614
615
template <class _Tp >
615
616
struct __optional_iterator_aliases <
@@ -621,17 +622,17 @@ private:
621
622
using __const_pointer _LIBCPP_NODEBUG = std::add_pointer_t <const _Tp>;
622
623
623
624
public:
624
- # if _LIBCPP_STD_VER >= 26
625
625
# ifdef _LIBCPP_ABI_BOUNDED_ITERATORS_IN_OPTIONAL
626
626
using __iterator _LIBCPP_NODEBUG = __bounded_iter<__wrap_iter<__pointer>>;
627
627
using __const_iterator _LIBCPP_NODEBUG = __bounded_iter<__wrap_iter<__const_pointer>>;
628
628
# else
629
629
using __iterator _LIBCPP_NODEBUG = __wrap_iter<__pointer>;
630
630
using __const_iterator _LIBCPP_NODEBUG = __wrap_iter<__const_pointer>;
631
631
# endif
632
- # endif
633
632
};
634
633
634
+ # endif
635
+
635
636
template <class _Tp >
636
637
class _LIBCPP_DECLSPEC_EMPTY_BASES optional
637
638
: private __optional_move_assign_base<_Tp>,
You can’t perform that action at this time.
0 commit comments