Skip to content

Commit 1f434a6

Browse files
committed
Allow transitive include of <optional> in affected headers
1 parent e6efcca commit 1f434a6

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

libcxx/include/experimental/iterator

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ _LIBCPP_POP_MACROS
127127
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
128128
# include <cstddef>
129129
# include <iosfwd>
130+
# include <optional>
130131
# include <type_traits>
131132
# endif
132133
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/mutex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,7 @@ _LIBCPP_POP_MACROS
506506
# include <initializer_list>
507507
# include <iosfwd>
508508
# include <new>
509+
# include <optional>
509510
# include <stdexcept>
510511
# include <system_error>
511512
# include <type_traits>

libcxx/include/shared_mutex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ _LIBCPP_POP_MACROS
461461
# endif // _LIBCPP_HAS_THREADS
462462

463463
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
464+
# include <optional>
464465
# include <system_error>
465466
# endif
466467
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

0 commit comments

Comments
 (0)