Skip to content

Commit 1d9ac9a

Browse files
committed
is_unbounded_array is >= C++20
1 parent 65b53af commit 1d9ac9a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libcxx/include/optional

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@ struct __is_std_optional<optional<_Tp>> : true_type {};
610610
template <class _Tp, class = void>
611611
struct __optional_iterator_aliases {};
612612

613+
# if _LIBCPP_STD_VER >= 26
613614
// disallow T (&)() and T (&)[]
614615
template <class _Tp>
615616
struct __optional_iterator_aliases<
@@ -621,17 +622,17 @@ private:
621622
using __const_pointer _LIBCPP_NODEBUG = std::add_pointer_t<const _Tp>;
622623

623624
public:
624-
# if _LIBCPP_STD_VER >= 26
625625
# ifdef _LIBCPP_ABI_BOUNDED_ITERATORS_IN_OPTIONAL
626626
using __iterator _LIBCPP_NODEBUG = __bounded_iter<__wrap_iter<__pointer>>;
627627
using __const_iterator _LIBCPP_NODEBUG = __bounded_iter<__wrap_iter<__const_pointer>>;
628628
# else
629629
using __iterator _LIBCPP_NODEBUG = __wrap_iter<__pointer>;
630630
using __const_iterator _LIBCPP_NODEBUG = __wrap_iter<__const_pointer>;
631631
# endif
632-
# endif
633632
};
634633

634+
# endif
635+
635636
template <class _Tp>
636637
class _LIBCPP_DECLSPEC_EMPTY_BASES optional
637638
: private __optional_move_assign_base<_Tp>,

0 commit comments

Comments
 (0)