Re: [PATCH] libstdc++: Allow std::ranges::to to create unions

2025-03-25 Thread Tomasz Kaminski
On Tue, Mar 25, 2025 at 1:43 PM Jonathan Wakely wrote: > LWG 4229 points out that the std::ranges::to wording refers to class > types, but I added an assertion using std::is_class_v which only allows > non-union class types. LWG consensus is that unions should be allowed, > so this additionally u

[PATCH] libstdc++: Allow std::ranges::to to create unions

2025-03-25 Thread Jonathan Wakely
LWG 4229 points out that the std::ranges::to wording refers to class types, but I added an assertion using std::is_class_v which only allows non-union class types. LWG consensus is that unions should be allowed, so this additionally uses std::is_union_v. libstdc++-v3/ChangeLog: * include/