www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/12/09:18:56

From: unjl AT ab251 DOT rz DOT uni-karlsruhe DOT de (Johannes Dieterich)
Newsgroups: comp.os.msdos.djgpp
Subject: C++-Container-Trouble
Date: 12 Jan 1998 14:11:34 GMT
Organization: University of Karlsruhe, Germany
Lines: 25
Message-ID: <69d8am$hlg$1@nz12.rz.uni-karlsruhe.de>
NNTP-Posting-Host: ab251.rz.uni-karlsruhe.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've experienced several problems using the C++-Containers as described in
the book of Stroustrup with DJGPP.

1. stack<custom datatype> doesn't work. Is this a bug ? Or am I doing
   something wrong ?

2. vector<T>::resize(n) is missing. This is crucial if you want to use vectors
   as multidimensional arrays.

3. list<T>::find(k) is missing. I wrote a specialized function myself by
   now. Am I allowed to alter the DJGPP libraries ? (legal stuff)

4. list<T>::clear() ist missing. Well, erase(begin(),end()) is a
   workaround... 

Aren't these functions (at least draft-) standard ? I've found them in the 
ANSI/C++ - workingpaper... 
Is there a patch to include the missing features? I'd appreciate any help.
Thanx

Joe

--
Johannes Dieterich  ***  eMail unjl AT rz DOT uni-karlsruhe DOT de

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019