Make the perfect-forwarding constructor of a two-element tuple sfinae away when the...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 19 Dec 2016 12:55:33 +0000 (14:55 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 19 Dec 2016 12:55:33 +0000 (14:55 +0200)
commit4b21c3ea03540ba1d89bca16561820f0911e17ce
treee5d7b3004bcfea8c1985fe2c6450e7e6c70b500e
parent99eb50e806f51a37f8188fd268a6abbb7d292927
Make the perfect-forwarding constructor of a two-element tuple sfinae away when the first argument is an allocator_arg.

Make the perfect-forwarding constructor of a two-element tuple
sfinae away when the first argument is an allocator_arg.
* include/std/tuple (tuple(_U1&&, _U2&&)): Constrain.
* testsuite/20_util/tuple/cons/allocator_with_any.cc: New.
* testsuite/20_util/tuple/element_access/get_neg.cc: Adjust.

From-SVN: r243795
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/cons/allocator_with_any.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/tuple/element_access/get_neg.cc