Mail Archives: djgpp/1998/02/12/17:18:33
Andrew Crabtree wrote:
> A. Sinan Unur wrote in message <34E2F36B DOT 37071F81 AT cornell DOT edu>...
> > AFAIK
> >_string.h (i.e. String.h) is for the GNU String class, as opposed to
> >string which is supposed to be the C++ standard header.
<_string.h> is the GNU string class, which is documented in info.
<string> is the standard C++ string class, which is the char instantiatiation
of the bastring template class (aren't you glad you asked) They are similar in
many ways, but NOT identical. Usually this bites you when you try to assign a
string from a char constant.
I did a project for my data structures class using GNU strings, because I
couldn't figure out the error messages I was getting using stdc++ strings.
Such is the nature of template class errors--you can never figure out just what
the heck they mean.
I DID finally make changes, so that now it will run using either one.
--
Charles Krug, Jr.
- Raw text -