[patch] std::string::operator[] extension in debug mode
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri May 20 11:46:00 GMT 2005
Jonathan Wakely <cow@compsoc.man.ac.uk> writes:
| On Thu, May 19, 2005 at 06:52:05PM -0500, Douglas Gregor wrote:
|
| > On May 19, 2005, at 5:03 PM, Gabriel Dos Reis wrote:
| >
| > >At configure time, if user instructs us that he also wants to use the
| > >"debug lib" later, then we should make the appropriate instantiation
| > >for the std::string so that it gest found latter.
| >
| > Are you referring to the configure option "--enable-libstdcxx-debug"?
| > At present, to my understanding, it does not have any effect on the
| > operation of -D_GLIBCXX_DEBUG.
| >
| > Or are you proposing that we should have some relationship between
| > --enable-libstdcxx-debug and _GLIBCXX_DEBUG? I can imagine that we
| > might instantiate std::string and std::wstring with _GLIBCXX_DEBUG
| > defined and place the results in the debug/libstdc++.(a or so) file
| > generated when --enable-libstdcxx-debug is defined.
|
| IMHO that would be a bad idea to do unconditionally, if you have some
| weird behaviour and want to debug it, you want to use a version of the
| library which is the same except for debugging symbols, you don't
| necessarily want one that executes different code (as happens when
| _GLIBCXX_DEBUG is defined)
Exactly, which symbols are we talking about here?
-- Gaby
More information about the Libstdc++
mailing list