This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: __get_c_string
Edwards, Phil wrote:
> If one includes <string> and compiles with -Wall, this warning appears:
>
> .../include/g++-v3/bits/basic_string.h:974: warning: `const char *
> __get_c_string(const string &)' defined but not used
This is used for the <stdexcept> exception classes, so that they can get
around a recursive string/exception include, and just forward declare the
string class. It is actually used, so applying the unused attribute is
probably not the best solution.
-benjamin