This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: string debug-mode solutions
On Thu, May 26, 2005 at 11:09:44AM -0500, Benjamin Kosnik wrote:
>
> > If the symbols are weak there's no problem with ODR, right?
>
> Right.
>
> So, I'll do this unless I hear loud screams soon.
>
> When you do the doc updates, can you also add something about the
> multiple translation units linked together thing? In this way, debug
> string is different than other containers, which have __gnu_norm and
> __gnu_debug namespace mangling to protect them.
Sure. I wrote a huge long paragraph explaining that, and the extern
template issues, and how inlining can make the assertions happen, then
trimmed it down to links to the design doc, but I'll go for something
in between that mentions the issues but doesn't go into too much detail.
jon
--
[Inlines] are the third most-misused C++ feature
(after inheritance and overloading).
- Nathan Myers