This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: PR 57779 New debug check
- From: Paolo Carlini <paolo dot carlini at oracle dot com>
- To: François Dumont <frs dot dumont at gmail dot com>
- Cc: Jonathan Wakely <jwakely dot gcc at gmail dot com>, "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Wed, 24 Jul 2013 10:49:52 +0200
- Subject: Re: PR 57779 New debug check
- References: <51DDC4A0 dot 6020008 at gmail dot com> <CAH6eHdS-X3B61M3+6NcYmiZ69Q80xda9JUMN7ciZgOC8=yZz8A at mail dot gmail dot com> <51DEE0A9 dot 9010809 at oracle dot com> <CAH6eHdQtkAqrDTsSQ5S7xE8P2ABK3JzOAuYNvAB7pxOGWprXSQ at mail dot gmail dot com> <51DF1291 dot 6040404 at gmail dot com> <CAH6eHdSdghzQ7NXQutXnVho6a=WVS-Dvnr37Q=myAEWVs2+JSA at mail dot gmail dot com> <CAH6eHdT=x7djoPSA1Ach9oeENEpz9WH8rGu5jSg4uiEwg+jowA at mail dot gmail dot com> <51E45AB2 dot 10000 at gmail dot com> <775842B8-CCCC-4126-9577-AF34711D5123 at oracle dot com> <CAH6eHdQ9RO8ycEscmaAiJZQqntLk4tHboeK1TjcJydTVxXovHw at mail dot gmail dot com> <51EEE901 dot 4010107 at gmail dot com>
Hi,
I didn't follow the finest details of this (Jonathan will be able to
provide better comments) but it's not immediately obvious to me what
happens of the -1 + 1 trick when begin() == end().
In my opinion, we should not add to cpp_type_traits.h, which would
become bigger even in normal-mode (in fact we would like to see it going
away...)
Paolo.