]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: Make the perfect-forwarding constructor of a two-element tuple sfinae away...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 19 Dec 2016 15:22:05 +0000 (17:22 +0200)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 19 Dec 2016 15:22:05 +0000 (17:22 +0200)
commit83c65d6de8460954f00d719f299a3e4b3f1a366f
treeb836b8a977bc4b2fc5c43b07843b22379914bcef
parent8c626c9e338bc36df93ee8486c36a5baa927d5a1
backport: Make the perfect-forwarding constructor of a two-element tuple sfinae away when the first argument is an allocator_arg.

Backport from mainline
2016-12-19  Ville Voutilainen  <ville.voutilainen@gmail.com>

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.

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