Skip to content

Commit 6af203b

Browse files
committed
Allow transitive include of <optional> in affected headers
1 parent 79f64a6 commit 6af203b

File tree

15 files changed

+15
-0
lines changed

15 files changed

+15
-0
lines changed

libcxx/include/algorithm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2057,6 +2057,7 @@ template <class BidirectionalIterator, class Compare>
20572057
# include <cstring>
20582058
# include <iterator>
20592059
# include <memory>
2060+
# include <optional>
20602061
# include <stdexcept>
20612062
# include <type_traits>
20622063
# include <utility>

libcxx/include/array

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ _LIBCPP_POP_MACROS
566566
# include <cstdlib>
567567
# include <iterator>
568568
# include <new>
569+
# include <optional>
569570
# include <type_traits>
570571
# include <utility>
571572
# endif

libcxx/include/bitset

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -974,6 +974,7 @@ _LIBCPP_POP_MACROS
974974
# if !defined(_LIBCPP_REMOVE_TRANSITIVE_INCLUDES) && _LIBCPP_STD_VER <= 20
975975
# include <concepts>
976976
# include <cstdlib>
977+
# include <optional>
977978
# include <type_traits>
978979
# endif
979980
#endif // __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)

libcxx/include/codecvt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,7 @@ _LIBCPP_END_NAMESPACE_STD
597597
# include <limits>
598598
# include <mutex>
599599
# include <new>
600+
# include <optional>
600601
# include <stdexcept>
601602
# include <type_traits>
602603
# include <typeinfo>

libcxx/include/condition_variable

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,7 @@ _LIBCPP_POP_MACROS
363363
# include <initializer_list>
364364
# include <iosfwd>
365365
# include <new>
366+
# include <optional>
366367
# include <stdexcept>
367368
# include <system_error>
368369
# include <type_traits>

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/ios

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ _LIBCPP_POP_MACROS
887887
# include <limits>
888888
# include <mutex>
889889
# include <new>
890+
# include <optional>
890891
# include <stdexcept>
891892
# include <system_error>
892893
# include <type_traits>

libcxx/include/locale

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3689,6 +3689,7 @@ _LIBCPP_POP_MACROS
36893689
# include <cstdarg>
36903690
# include <iterator>
36913691
# include <mutex>
3692+
# include <optional>
36923693
# include <stdexcept>
36933694
# include <type_traits>
36943695
# include <typeinfo>

libcxx/include/mutex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ _LIBCPP_POP_MACROS
508508
# include <initializer_list>
509509
# include <iosfwd>
510510
# include <new>
511+
# include <optional>
511512
# include <stdexcept>
512513
# include <system_error>
513514
# 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)