Re: Container debug light mode

2016-06-16 Thread Jonathan Wakely
On 16/06/16 21:28 +0200, François Dumont wrote: And here is the patch to only add light debug checks to vector and deque. Excellent, thanks - this is OK for trunk.

Re: Container debug light mode

2016-06-16 Thread François Dumont
And here is the patch to only add light debug checks to vector and deque. * include/debug/debug.h (__glibcxx_requires_non_empty_range, __glibcxx_requires_nonempty) (__glibcxx_requires_subscript): Move... * include/debug/assertions.h: ...here and add __builtin_expect.

Re: Container debug light mode

2016-06-13 Thread Jonathan Wakely
On 08/06/16 22:53 +0200, François Dumont wrote: Hi Here is the patch I already proposed to introduce the debug light mode for vector and deque containers. It also simplify some internal calls. This looks great, and I'd like to see it on trunk, but could you split it into two patches

Container debug light mode

2016-06-08 Thread François Dumont
Hi Here is the patch I already proposed to introduce the debug light mode for vector and deque containers. It also simplify some internal calls. * include/debug/debug.h (__glibcxx_requires_non_empty_range, __glibcxx_requires_nonempty) (__glibcxx_requires_subscript):