]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Change std::variant union member to empty struct
authorJonathan Wakely <jwakely@redhat.com>
Tue, 19 Oct 2021 10:53:27 +0000 (11:53 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 19 Oct 2021 14:01:16 +0000 (15:01 +0100)
commit5a8832b1659e311437d25b7ec8b078be27ae54b8
tree229b1a38f430ba240fcfb5f9391b849a85d969cb
parentc4ecb11e4f7ea15f636e463248c8b14083bef05d
libstdc++: Change std::variant union member to empty struct

This more clearly expresses the intent (a completely unused, trivial
type) than using char. It's also consistent with the unions in
std::optional.

libstdc++-v3/ChangeLog:

* include/std/variant (_Uninitialized): Use an empty struct
for the unused union member, instead of char.
libstdc++-v3/include/std/variant