Avoid creating dangling references in case of nested tuples
commit63e26b218b009b1cec13faa237b6e10cf347a078
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Sep 2015 16:41:45 +0000 (25 16:41 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Sep 2015 16:41:45 +0000 (25 16:41 +0000)
tree4b6be450261dddabdc4c78c3e479be2e192f2ee6
parenta6871bda07973b01bb6472dbd4cac03339cce8e2
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228134 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/tuple
libstdc++-v3/testsuite/20_util/tuple/cons/nested_tuple_construct.cc [new file with mode: 0644]