[libc++][format] Fixes vector<bool> requirements.

Makes sure the formatter for the vector<bool>::reference is enabled
when only the header <vector> is included. Before this change it
required <vector> and <format> to be included. This violated the
requirements in the Standard.

Fixes: https://llvm.org/PR61314

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D149543
This commit is contained in:
Mark de Wever
2023-04-20 20:53:46 +02:00
parent 7b7be685d4
commit 7e6bcb35a8
12 changed files with 80 additions and 26 deletions

View File

@@ -1047,7 +1047,6 @@ _LIBCPP_POP_MACROS
# include <algorithm>
# include <concepts>
# include <cstdlib>
# include <functional>
# include <iterator>
# include <type_traits>
#endif