Avoid endless run-time recursion for copying single-element
commitf388e6c088a34248c4332c8ce1bd41a1b8c2f368
authorville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2016 11:03:36 +0000 (9 11:03 +0000)
committerville <ville@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 May 2016 11:03:36 +0000 (9 11:03 +0000)
tree9e1995589052979ed36437c6c15615ab0ee511d2
parentf8570abe6f059670716024adb53b5c4b881638ab
Avoid endless run-time recursion for copying single-element
tuples where the element type is by-value constructible
from any type.
  * include/std/tuple (_NotSameTuple): New.
  * include/std/tuple (tuple(_UElements&&...): Use it.
* testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc: New.

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