re PR libstdc++/79513 (std::visit doesn't handle references)
authorTim Shen <timshen@google.com>
Wed, 15 Feb 2017 07:38:20 +0000 (07:38 +0000)
committerTim Shen <timshen@gcc.gnu.org>
Wed, 15 Feb 2017 07:38:20 +0000 (07:38 +0000)
commit7d5abe42c27ca37bc9739f80e5f0f255206fed4f
tree588d0af58002afc87b184167aa087eb128b539aa
parentfdbb46228fe7cb06c637e332752c26a510dd47d2
re PR libstdc++/79513 (std::visit doesn't handle references)

PR libstdc++/79513
* include/std/variant (visit()): Forward variant types to the return
type detection code.
* testsuite/20_util/variant/compile.cc: Add test cases.

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