[libcxx] r178288 - I believe debug mode for vector<T> (T != bool) is complete. If anyone sees anything more they would like to see on it, please let me know. Debug mode is activated by compiling with -D_LIBCPP_DEBUG2=1. Eventually _LIBCPP_DEBUG2 will be renamed to just _LIBCPP_DEBUG.

Sean Silva silvas at purdue.edu
Fri Mar 29 09:56:55 PDT 2013


On Thu, Mar 28, 2013 at 9:22 PM, Howard Hinnant <hhinnant at apple.com> wrote:

> On Mar 28, 2013, at 8:49 PM, Sean Silva <silvas at purdue.edu> wrote:
>
> > Could you maybe give a bit of information about what this "debug mode"
> is? Is it a "checked STL" type thing? That would be fantastic to have.
>
> Yes.  The bulk of it is run time checks on vector and its iterators
> (hopefully to spread to more parts of libc++ soon).


It would be nice if you mentioned this briefly on <
http://libcxx.llvm.org/debug_mode.html>.


Also, this requires building specifically against the debug version, right?
(I presume that having the iterator track its container breaks the ABI
somehow).

-- Sean Silva
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130329/3d5d518b/attachment.html>


More information about the cfe-commits mailing list