]> git.ipfire.org Git - thirdparty/gcc.git/commit
Remove check for impossible condition in std::variant::index()
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Sep 2019 14:17:08 +0000 (14:17 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Sep 2019 14:17:08 +0000 (14:17 +0000)
commit3efa913a6e44fd44aa6d4b88317c96209996eedc
treee2c9b4dff38e581b702245c845001c3b29464a6a
parent0edf202cb6ae645f39d7bba0521b077c6b4289ab
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276100 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant