variant (visit): Make visit constexpr.
authorTim Shen <timshen@google.com>
Tue, 6 Dec 2016 11:28:09 +0000 (11:28 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Tue, 6 Dec 2016 11:28:09 +0000 (11:28 +0000)
commitb01af236b7d0d92cf1e9d642495d9177347bd740
tree7f0ce37f889944d73231296ffa53c7648bd8ceb0
parent458ef69052224b5d3d2c78cfbe0a0e0ec85a4193
variant (visit): Make visit constexpr.

* include/std/variant (visit): Make visit constexpr. Also cleanup
__get_alternative and __storage, since we don't support reference/void
alternatives any more.
* testsuite/20_util/variant/compile.cc: Add tests.

From-SVN: r243295
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/variant
libstdc++-v3/testsuite/20_util/variant/compile.cc