Mail Archives: djgpp/2000/11/03/08:46:09
Martin Stromberg wrote:
> : It turns out that the source is there anyway if you want to see it -
> : it's in the file c:\djgpp\lang\cxx\std\bastring.cc. (I don't know why
> : that's there though, since I'm sure DJGPP just uses the library file.)
>
> I don't know why, but it's there because bastring.h #includes
> std/bastring.cc.
You're right - I didn't notice that.
BTW, adding the following two lines
int compare(size_type pos, size_type n, const basic_string& str) const
{ return compare (str, pos, n); }
to the basic_string class definition in bastring.h allows the program
in the original post in this thread to work (provided the program is
fixed by adding
#include <iostream>
#include <string>
at the start).
- Raw text -