[patch] std::string::operator[] extension in debug mode

Paolo Carlini pcarlini@suse.de
Fri May 20 08:45:00 GMT 2005


chris jefferson wrote:

> Sorry for a possibly stupid question. but this seems to me to be the
> main problem. Will the problems go away if we just have two
> definitions of basic_string, like we have two definitions of other
> containers for when we want debug mode?

I think it's well known that basic_string *cannot* be treated like the
other containers: Doug pointed to an old message about that:

    http://gcc.gnu.org/ml/libstdc++/2003-07/msg00372.html

But, of course, if you can imagine a way to overcome those difficulties...

Paolo.



More information about the Libstdc++ mailing list