This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: Debug mode lite plan
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: FranÃois Dumont <frs dot dumont at gmail dot com>
- Cc: "libstdc++ at gcc dot gnu dot org" <libstdc++ at gcc dot gnu dot org>
- Date: Tue, 18 Aug 2015 22:30:18 +0100
- Subject: Re: Debug mode lite plan
- Authentication-results: sourceware.org; auth=none
- References: <55BBD2F2 dot 3040901 at gmail dot com> <CAH6eHdS4BObzGELk67dfB4+wEP3fTQL0fpx7Ac47=DOf3gpzXw at mail dot gmail dot com> <55D38A77 dot 1030108 at gmail dot com>
On 18 August 2015 at 20:41, FranÃois Dumont wrote:
> I feared such a thing. Too bad, I was hoping that I could isolate all
> checks in debug folder. We will just need to spread checks throughout
> the code.
That seems better to me anyway.
I would rather not have yet another version of each container, so we
need to make fixes and enhancements in four different version. Having
to do it for each of normal/debug/profile mode is bad enough! :-)
If we want to assert that a call to vector::operator[] is not out of
bounds we only need to add an assertion, we don't need a whole new
type. If we want to assert that a call to unique_ptr::operator* is not
done on a null pointer we don't need a whole new type.