<div dir="rtl"><div dir="ltr">Thanks, I see, it's binary compatible with libstdc++ basic_string.</div><div dir="ltr"><br></div><div dir="ltr">BTW, MingW libstdc++ standard DLL build statically links libsupc++ so it's not replaceable. If libcxxabi.dll is also around, two copies of the ABI will exist linked at the same time to different parts of the programs.</div>
<div dir="ltr"><br></div><div dir="ltr">I'm trying to build libcxx + libcxxabi combined.</div><div dir="ltr"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div dir="ltr">2013/10/9 Howard Hinnant <span dir="ltr"><<a href="mailto:howard.hinnant@gmail.com" target="_blank">howard.hinnant@gmail.com</a>></span></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Oct 8, 2013, at 1:35 PM, Yaron Keren <<a href="mailto:yaron.keren@gmail.com">yaron.keren@gmail.com</a>> wrote:<br>
<br>
> I have couple of questions about __libcpp_nmstr class design.<br>
><br>
> It's a reference counted char* class optimized for size, right?<br>
><br>
> Why is this so important to optimize this class size to the absolute minimum?<br>
><br>
> What is the purpose of the two unused_t? (I understand they are named unused...)<br>
> Why they are assigned the string length if never used?<br>
<br>
</div></div>libcxx/libcxxabi were created as replacements for gcc's-4.2 libstdc++. The intent is that all exception classes defined in <stdexcept> be ABI compatible with libstdc++-4.2 so that if an application found itself using both libc++ and libstdc++ (indirectly via various dylibs) that a std-defined exception propagated by one library could be caught by another, without worry about whether either library was linked against libstdc++ or libc++. In most recent work, the definitions for these types have migrated to libc++abi (<a href="http://libcxxabi.llvm.org" target="_blank">http://libcxxabi.llvm.org</a>), so that libc++abi can serve both libc++ and libstdc++, assuming libstdc++ has been ported to run on top of libc++abi.<br>
<span class="HOEnZb"><font color="#888888"><br>
Howard<br>
<br>
</font></span></blockquote></div><br></div></div>