On Mar 29, 2013, at 12:56 PM, Sean Silva <[email protected]> wrote:

> 
> On Thu, Mar 28, 2013 at 9:22 PM, Howard Hinnant <[email protected]> wrote:
> On Mar 28, 2013, at 8:49 PM, Sean Silva <[email protected]> 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>. 

I agree we need debug mode documentation.  Contributions welcome.  Right now 
I'm just rushing to get the functionality in as my time is quite limited.

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

src/debug.cpp does need to be included in the build.  The intent is include 
this source in both debug and release builds, and that it only be a minor size 
penalty in the dylib, with no run time hit when debug mode is not activated.

The intent is also that activating debug mode does not change the ABI.  However 
this intent is not well tested at this point.

Howard

_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to