Skip to content

Commit 64909e9

Browse files
committed
Mostly revert conditional inclusion change (for now) due to a circular inclusion in __pstl/default.h in C++17 and C++20
The circular include looks like the following: optional -> __format/range_format.h -> __format/concepts.h -> __format/format_parse_context.h -> string_view -> algorithm -> __algorithm/pstl.h -> __pstl/backend.h -> __pstl/backends/default.h -> optional
1 parent 4ac10bf commit 64909e9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libcxx/include/optional

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,6 @@ namespace std {
201201
# include <__config>
202202
# include <__cstddef/ptrdiff_t.h>
203203
# include <__exception/exception.h>
204-
# include <__format/range_format.h>
205204
# include <__functional/hash.h>
206205
# include <__functional/invoke.h>
207206
# include <__functional/unary_function.h>
@@ -250,6 +249,10 @@ namespace std {
250249
# include <initializer_list>
251250
# include <version>
252251

252+
# if _LIBCPP_STD_VER >= 26
253+
# include <__format/range_format.h>
254+
# endif
255+
253256
// standard-mandated includes
254257

255258
// [optional.syn]

0 commit comments

Comments
 (0)