From kde-devel Fri May 01 16:58:03 1998 From: Mirko Sucker Date: Fri, 01 May 1998 16:58:03 +0000 To: kde-devel Subject: Re: Q: STL incompatibilities - how to solve it with autoconf? X-MARC-Message: https://marc.info/?l=kde-devel&m=90221961129421 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------9D072E107EE69B67D719C019" --------------9D072E107EE69B67D719C019 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit weis@stud.uni-frankfurt.de wrote: > Hi, > > this is indeed ugly. gcc STL uses remove and egcs STL uses erase. > > Which is one is the standard now ? > > ... puzzled ... > > Bye > Torben According to Josuttis: "Die C++-Standardbibliothek", Addison-Wesley-Longman 1996 it is "remove". But of course we have to deal with both of them. In kab, I simply declare a macro ERASE and set it to one of them. The methods "erase" and "remove" have, AFAIK, the same functionality. That is why I asked for a automake define to have a global distinction between both STL versions. Greetings, --Mirko. -- http://www.hamburg.netsurf.de/~mirko.sucker/ Die besten sind diejenigen, die alles selbst bedenken; gut sind auch die, die auf den Rat Erfahrener hoeren; diejenigen aber, die weder wissen noch hoeren auf anderer Weisheit sind nutzlose Wichte. --Hesiod (8. Jhd. v.C.) --------------9D072E107EE69B67D719C019 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit weis@stud.uni-frankfurt.de wrote:
Hi,

this is indeed ugly. gcc STL uses remove and egcs STL uses erase.

Which is one is the standard now ?

... puzzled ...

Bye
Torben

According to Josuttis: "Die C++-Standardbibliothek", Addison-Wesley-Longman 1996 it is "remove".
But of course we have to deal with both of them. In kab, I simply declare a macro ERASE and set it to one of them. The methods "erase" and "remove" have, AFAIK, the same functionality. That is why I asked for a automake define to have a global distinction between both STL versions.
Greetings,
--Mirko.
-- 
http://www.hamburg.netsurf.de/~mirko.sucker/
Die besten sind diejenigen, die alles selbst bedenken; gut sind auch die,
die auf den Rat Erfahrener hoeren; diejenigen aber, die weder wissen noch
hoeren auf anderer Weisheit sind nutzlose Wichte. --Hesiod (8. Jhd. v.C.)
  --------------9D072E107EE69B67D719C019--