re PR libstdc++/66338 (std::forward_as_tuple() issue with single argument)
authorVille Voutilainen <ville.voutilainen@gmail.com>
Fri, 27 May 2016 14:08:37 +0000 (17:08 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Fri, 27 May 2016 14:08:37 +0000 (17:08 +0300)
commitb70210069319f6934a6bfd2b0aad5fb6befecc83
tree7294d0ef22deb1db82da5222f52bf5fce6cba3fa
parentf2879a90ec9f0ec1a112d4bac81dae0f4d356e0d
re PR libstdc++/66338 (std::forward_as_tuple() issue with single argument)

2016-05-24  Ville Voutilainen  <ville.voutilainen@gmail.com>

PR libstdc++/66338
* include/std/tuple (_TMC): Add a check for _NotSameTuple.
* include/std/tuple (tuple(_UElements&&...)): Remove the separate
check for _NotSameTuple.
* include/std/tuple (_TMCT): New.
* include/std/tuple (tuple(const tuple<_UElements...>&)): Use it.
* include/std/tuple (tuple(tuple<_UElements...>&&)): Likewise.
* include/std/tuple (tuple(allocator_arg_t, const _Alloc&,
      const tuple<_UElements...>&)): Likewise.
* include/std/tuple (tuple(allocator_arg_t, const _Alloc&,
      tuple<_UElements...>&&)): Likewise.
* testsuite/20_util/tuple/cons/66338.cc: New.

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