Re: [PATCH 1/2] libstdc++: Enable string_view in freestanding

2023-01-13 Thread Jonathan Wakely via Gcc-patches
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,

Re: [PATCH 1/2] libstdc++: Enable string_view in freestanding

2023-01-10 Thread Arsen Arsenović via Gcc-patches
, 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

Re: [PATCH 1/2] libstdc++: Enable string_view in freestanding

2023-01-10 Thread Jonathan Wakely via Gcc-patches
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

[PATCH 1/2] libstdc++: Enable string_view in freestanding

2023-01-10 Thread Arsen Arsenović via Gcc-patches
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