Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libcxx/include/optional
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ using __optional_sfinae_assign_base_t _LIBCPP_NODEBUG =
template <class _Tp>
class optional;

# if _LIBCPP_STD_VER >= 26
# if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR
template <class _Tp>
constexpr bool ranges::enable_view<optional<_Tp>> = true;

Expand Down
4 changes: 2 additions & 2 deletions libcxx/modules/std/optional.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export namespace std {
// [optional.optional], class template optional
using std::optional;
#if _LIBCPP_STD_VER >= 26
#if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR
// [optional.iterators], iterator support
namespace ranges {
using std::ranges::enable_borrowed_range;
Expand All @@ -24,7 +24,7 @@ export namespace std {
// [optional.bad.access], class bad_optional_access
using std::bad_optional_access;

#if _LIBCPP_STD_VER >= 26
#if _LIBCPP_STD_VER >= 26 && _LIBCPP_HAS_EXPERIMENTAL_OPTIONAL_ITERATOR
using std::format_kind;
#endif

Expand Down
Loading