Re: [PATCH] libstdc++: Use C++20 constraints in

2023-09-14 Thread Patrick Palka via Gcc-patches
On Thu, 14 Sep 2023, Jonathan Wakely wrote: > On Thu, 14 Sept 2023 at 15:13, Patrick Palka via Libstdc++ > wrote: > > > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > > > -- >8 -- > > > > By now it's probably safe to assume supported compilers have full > > concepts support in

Re: [PATCH] libstdc++: Use C++20 constraints in

2023-09-14 Thread Jonathan Wakely via Gcc-patches
On Thu, 14 Sept 2023 at 15:13, Patrick Palka via Libstdc++ wrote: > > Tested on x86_64-pc-linux-gnu, does this look OK for trunk? > > -- >8 -- > > By now it's probably safe to assume supported compilers have full > concepts support in C++20 mode. Clang 14.0.0 is good enough for these uses. It doe

[PATCH] libstdc++: Use C++20 constraints in

2023-09-14 Thread Patrick Palka via Gcc-patches
Tested on x86_64-pc-linux-gnu, does this look OK for trunk? -- >8 -- By now it's probably safe to assume supported compilers have full concepts support in C++20 mode. And using a requires-clase instead enable_if_t inside the return type greatly reduces the sizes of the corresponding symbol names