PR 57779 New debug check

François Dumont frs.dumont@gmail.com
Wed Jul 24 20:41:00 GMT 2013


On 07/24/2013 10:49 AM, Paolo Carlini wrote:
> 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.
>
The -1 +1 trick only take place if begin() != end().


Do you want me to make part of the check only active in C++11 mode so 
that I simply rely on C++11 features ?

François



More information about the Libstdc++ mailing list