<ranges>: Make ranges::to support creating unions by frederick-vs-ja · Pull Request #5794 · microsoft/STL (original) (raw)
Union types are also class types in the C++ core language, and [range.utility.conv.adaptors] doesn't exclude them.
LWG-4229 attempted to clarify that unions are unsupported, but it's recently set to Tentatively NAD. As a result, we should support creating unions.