Implement the missing bits of LWG 2769
authorVille Voutilainen <ville.voutilainen@gmail.com>
Tue, 27 Feb 2018 11:33:30 +0000 (13:33 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Tue, 27 Feb 2018 11:33:30 +0000 (13:33 +0200)
commit23c3a0590839e94c94890bb11c2e2e96c1b27f1d
tree67088f0548a23a8f21daff7a8ecc049ea30f0bec
parent2be4b342e00df3968d9b069349bd4cf540ea1f56
Implement the missing bits of LWG 2769

* include/std/any (any_cast(const any&)): Add static_assert.
(any_cast(any&)): Likewise.
(any_cast(any&&)): Likewise, and remove the handling
for copyable-but-not-movable type.
* testsuite/20_util/any/misc/any_cast.cc: Adjust.
* testsuite/20_util/any/misc/any_cast_neg.cc: Likewise, and
add new tests.

From-SVN: r258031
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/any
libstdc++-v3/testsuite/20_util/any/misc/any_cast.cc
libstdc++-v3/testsuite/20_util/any/misc/any_cast_neg.cc