This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
I am totally lost with libstdc++
- To: egcs at cygnus dot com
- Subject: I am totally lost with libstdc++
- From: hjl at lucon dot org (H.J. Lu)
- Date: Fri, 10 Oct 1997 10:30:05 -0700 (PDT)
While looking at libstdc++, I am totally lost. I don't know how anyone
can get basic_string to work on any platforms.
string::string (const char *) checks range and throws an exception,
out_of_range (const string &), if necsssary, via OUTOFRANGE, which
is defined as
#define OUTOFRANGE(cond) \
do { if (!(cond)) throw out_of_range (#cond); } while (0)
As you can see, it calls string::string (const char *). Now we
get an endless recursive call. I have no idea how it will work
on any platforms. I will see what I can do.
--
H.J. Lu (hjl@gnu.ai.mit.edu)