Remove check for impossible condition in std::variant::index()
authorJonathan Wakely <jwakely@redhat.com>
Tue, 24 Sep 2019 14:17:08 +0000 (15:17 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Tue, 24 Sep 2019 14:17:08 +0000 (15:17 +0100)
commitfe69bee34c645589d3f2a489d7c67c349960410d
treee2c9b4dff38e581b702245c845001c3b29464a6a
parenta7701dd16103048432ec8051e4773760c0e2cf90
Remove check for impossible condition in std::variant::index()

The __index_type is only ever unsigned char or unsigned short, so not
the same type as size_t.

* include/std/variant (variant::index()): Remove impossible case.

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