On Tue, 10 Jan 2023 at 16:31, Arsen Arsenović via Libstdc++
wrote:
>
> Hi Jonathan,
>
> Jonathan Wakely writes:
>
> > Sorry for the top post.
> >
> > -#define __cpp_lib_string_contains 202011L
> > +#if _GLIBCXX_HOSTED
> > + // This FTM is not hosted as it also implies matching
> > support,
, 15 Dec 2022 00:53:37 +0100
Subject: [PATCH 1/2] libstdc++: Enable string_view in freestanding
This enables the default contract handler in freestanding environments,
and, of course, provides freestanding users with string_view.
libstdc++-v3/ChangeLog:
* include/Makefile.am: Ins
Sorry for the top post.
-#define __cpp_lib_string_contains 202011L
+#if _GLIBCXX_HOSTED
+ // This FTM is not hosted as it also implies matching
support,
+ // and is omitted from the freestanding subset.
+# define __cpp_lib_string_contains 202011L
+#endif // HOSTED
That should say "not
This enables the default contract handler in freestanding environments,
and, of course, provides freestanding users with string_view.
libstdc++-v3/ChangeLog:
* include/Makefile.am: Install bits/char_traits.h,
std/string_view
* include/Makefile.in: Regenerate.
* inc