Mail Archives: djgpp/2000/10/31/22:01:39
On Tue, 31 Oct 2000 13:45:17 GMT, dontmailme AT iname DOT com (Steamer)
wrote:
>Rodeo Red wrote:
>
>> > The compare() member functions for std::string in GCC's C++ library
>> > are non-standard.
>>
very true :)
>
>> > The code that Stan Moore posted obviously won't work with most C++
>> > compilers.
>>
also very true, and I was remiss in not pointing that out. I was being
hurried out the door on a very important mission; at least my teenage
daughter thought it was terribly important :) In my haste I didn't
explain things very well, I'm sorry. For that matter I'm not all that
happy about the code either, but the question caught my interest
because I haven't used GCC's library and spelunking through the info
is always good exercise.
>>
>> Well its not so obvious to me.:)
>> Let me see if I got this straight
>> He's using this form of compare:
>> if (( pos3 > 0 ) && (word.compare(ies, pos3)))
>>
>> which would match:
>> int compare(const basic_string& str, size_type n1,)
>>
>> Which does not match any compare() function in standard c++ but is
>> included with djgpp.
>>
>> Correct ?
>
>Correct.
Looks like my lack of clarity didn't do any permanent damage to the
collective :)
I haven't had time to look at STLport. Does it work nicely with the
djgpp installation?
- Raw text -