PR 57779 New debug check

François Dumont
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 ?


More information about the Libstdc++ mailing list