This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [v3 PATCH] Avoid endless run-time recursion for copying single-element tuples where the element type is by-value constructible from any type
- From: Daniel KrÃgler <daniel dot kruegler at gmail dot com>
- To: Ville Voutilainen <ville dot voutilainen at gmail dot com>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 8 May 2016 13:48:38 +0200
- Subject: Re: [v3 PATCH] Avoid endless run-time recursion for copying single-element tuples where the element type is by-value constructible from any type
- Authentication-results: sourceware.org; auth=none
- References: <CAFk2RUbNSFqrX5kuEK-yd14verEu=ttGiq-Njm5=UhyMchvJVg at mail dot gmail dot com>
Have you considered to test against decay instead of
remove_reference/remove_const? That would be similar to other places
in the standard. (I also believe that your fix actually should be
submitted as an LWG issue)
- Daniel
2016-05-08 13:43 GMT+02:00 Ville Voutilainen <ville.voutilainen@gmail.com>:
> Tested on Linux-PPC64.
>
> 2016-05-08 Ville Voutilainen <ville.voutilainen@gmail.com>
>
> Avoid endless run-time recursion for copying single-element
> tuples where the element type is by-value constructible
> from any type.
> * include/std/tuple (_TC<>::_NotSameTuple): New.
> * include/std/tuple (tuple(_UElements&&...): Use it.
> * testsuite/20_util/tuple/cons/element_accepts_anything_byval.cc: New.
--
________________________________
SavedURI :Show URLShow URLSavedURI :
SavedURI :Hide URLHide URLSavedURI :
https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.de.LEt2fN4ilLE.O/m=m_i,t,it/am=OCMOBiHj9kJxhnelj6j997_NLil29vVAOBGeBBRgJwD-m_0_8B_AD-qOEw/rt=h/d=1/rs=AItRSTODy9wv1JKZMABIG3Ak8ViC4kuOWA?random=1395770800154https://mail.google.com/_/scs/mail-static/_/js/k=gmail.main.de.LEt2fN4ilLE.O/m=m_i,t,it/am=OCMOBiHj9kJxhnelj6j997_NLil29vVAOBGeBBRgJwD-m_0_8B_AD-qOEw/rt=h/d=1/rs=AItRSTODy9wv1JKZMABIG3Ak8ViC4kuOWA?random=1395770800154
________________________________