This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

I am totally lost with libstdc++


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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]