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
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, > + // and is omitted from the freestanding subset. > +# define __cpp_lib_string_c

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