We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7239744 commit 23b9ac2Copy full SHA for 23b9ac2
1 file changed
libstdc++-v3/include/std/optional
@@ -60,7 +60,9 @@
60
# include <concepts>
61
#endif
62
#ifdef __cpp_lib_optional_range_support // C++ >= 26
63
-# include <bits/formatfwd.h>
+# if _GLIBCXX_HOSTED
64
+# include <bits/formatfwd.h>
65
+# endif
66
# include <bits/ranges_base.h>
67
# include <bits/range_access.h>
68
@@ -2285,9 +2287,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
2285
2287
ranges::enable_borrowed_range<optional<_Tp&>> = true;
2286
2288
2289
2290
+#if _GLIBCXX_HOSTED
2291
template<typename _Tp>
2292
inline constexpr range_format
2293
format_kind<optional<_Tp>> = range_format::disabled;
2294
+#endif
2295
#endif // __cpp_lib_optional_range_support
2296
2297
#undef _GLIBCXX_USE_CONSTRAINTS_FOR_OPTIONAL
0 commit comments