Avoid creating dangling references in case of nested tuples
authorVille Voutilainen <ville.voutilainen@gmail.com>
Fri, 25 Sep 2015 16:41:45 +0000 (19:41 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Fri, 25 Sep 2015 16:41:45 +0000 (19:41 +0300)
commit5e2f2cd5842d2543721a895c64a3b2a553542344
tree4b6be450261dddabdc4c78c3e479be2e192f2ee6
parent41d9f1e0397b3661f765d21d8397e2a54aa4cd55
Avoid creating dangling references in case of nested tuples
for tuple constructors that construct from other tuples.

2015-09-25  Ville Voutilainen  <ville.voutilainen@gmail.com>

Avoid creating dangling references in case of nested tuples
for tuple constructors that construct from other tuples.
* include/std/tuple (_TC::_NonNestedTuple): New.
* include/std/tuple (tuple::_TNTC): New.
* include/std/tuple (tuple(const tuple<_UElements...>&),
tuple(tuple<_UElements...>&&): Use _TNTC.
* testsuite/20_util/tuple/cons/nested_tuple_construct.cc: New.

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