[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.

Howard Hinnant hhinnant at apple.com
Thu Mar 28 18:22:47 PDT 2013


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).  I've also beefed up a few compile time checks that are enabled whether or not debug mode is enabled.

Howard




More information about the cfe-commits mailing list