Improve static_assert messages for std::variant
authorJonathan Wakely <jwakely@redhat.com>
Wed, 12 Jun 2019 14:52:09 +0000 (15:52 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 12 Jun 2019 14:52:09 +0000 (15:52 +0100)
commit801b2266dee7bc669bcab0ff645a0b36fa9dcfd5
treec1bd3ea63d649ed705d2067d502bc318cef4dcac
parentce657a74143a11bfa43f5d334b11b57954568f12
Improve static_assert messages for std::variant

Also fix a warning with -Wunused-parameter -Wsystem-headers.

* include/std/variant (get<T>, get<N>, get_if<N>, get_if<T>)
(variant::emplace): Change static_assert messages from "should be"
to "must be".
(hash<monostate>::operator()): Remove name of unused parameter.

From-SVN: r272188
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant