Avoid endless run-time recursion for copying single-element tuples where the...
authorVille Voutilainen <ville.voutilainen@gmail.com>
Mon, 9 May 2016 11:03:36 +0000 (14:03 +0300)
committerVille Voutilainen <ville@gcc.gnu.org>
Mon, 9 May 2016 11:03:36 +0000 (14:03 +0300)
commitfb334765e2ab959fcf3630e3c4a31ba1cc01a0f2
tree9e1995589052979ed36437c6c15615ab0ee511d2
parentfc48633e86abf4dacc6ee7281a3be14d97328980
Avoid endless run-time recursion for copying single-element tuples where the...

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.

From-SVN: r236025
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]