Re: [PATCH] libstdc++: Simplify C++20 implementation of std::variant

2024-08-23 Thread Jonathan Wakely
On Wed, 21 Aug 2024 at 10:03, Jonathan Wakely wrote: > > Tested x86_64-linux. > > This should improve compile times for C++20 and up. > > I need to test this with Clang, but then I plan to push it if all goes > well. It seems to work OK with Clang, so I've pushed it.

[PATCH] libstdc++: Simplify C++20 implementation of std::variant

2024-08-21 Thread Jonathan Wakely
Tested x86_64-linux. This should improve compile times for C++20 and up. I need to test this with Clang, but then I plan to push it if all goes well. -- >8 -- For C++20 the __detail::__variant::_Uninitialized primary template can be used for all types, because _Variant_union can have a non-triv