[libc++] Add missing includes to optional
authorKrasimir Georgiev <krasimir@google.com>
Thu, 9 Mar 2023 13:02:45 +0000 (14:02 +0100)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 9 Mar 2023 13:07:33 +0000 (14:07 +0100)
commit8227349f7e4f1a6ceb4cceb464c8f4420ff1dd0a
treeed9da9563b61baafc71f164d5ce97c03e1390ae7
parentf188004183b74b4be8345c163fb9b15c079c1bd2
[libc++] Add missing includes to optional

After commit 0a4aa8a122aa097499c498b639a75b5e9a73e9f0 we see failures
like:
optional:722:7: error: missing '#include <__type_traits/conjunction.h>';
'_And' must be declared before it is used
and:
optional:683:46: error: missing '#include
<__type_traits/disjunction.h>'; '_Or' must be declared before it is used
      using __check_constructible_from_opt = _Or<

Adding these here fixes that.
I'm not familiar with the libcxx codebase, will ask the author to take a
look too.
libcxx/include/optional