]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Remove non-void static assertions in variant's std::get [PR111172]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 12 Sep 2023 20:28:38 +0000 (21:28 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Sep 2023 09:24:01 +0000 (10:24 +0100)
commitd19bdf8874059457fdfe50a9e14dad8f8b8cecbb
tree6ea04c155f5ecd6818606932c6f7eb40d8154da2
parent8fa1430bb28c775bb8b97c4337b0cd61db9f4d2e
libstdc++: Remove non-void static assertions in variant's std::get [PR111172]

A void template argument would cause a substitution failure when trying
to form a reference for the return type, so the function body would
never be instantiated.

libstdc++-v3/ChangeLog:

PR libstdc++/111172
* include/std/variant (get<T>): Remove !is_void static
assertions.
libstdc++-v3/include/std/variant