libstdc++: Remove unused functions in std::variant implementation
authorJonathan Wakely <jwakely@redhat.com>
Fri, 15 Oct 2021 10:52:08 +0000 (11:52 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 15 Oct 2021 17:26:52 +0000 (18:26 +0100)
commit1ba7adabf29eb671e418692fad076ea6edd08e3d
tree7eebe23e3f85e0771dbb8366817553b2ac4c844f
parenta01704fc45a727fbfc4999983b3e8886c0f86fed
libstdc++: Remove unused functions in std::variant implementation

These functions aren't used, and accessing the storage as a void* isn't
compatible with C++20 constexpr requirements anyway, so we're unlikely
to ever start using them in future.

libstdc++-v3/ChangeLog:

* include/std/variant (_Variant_storage::_M_storage()): Remove.
(__detail::__variant::__get_storage): Remove.
(variant): Remove friend declaration of __get_storage.
libstdc++-v3/include/std/variant