home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / cplus / 13377 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.1 KB

  1. Path: sparky!uunet!pmafire!news.dell.com!swrinde!sdd.hp.com!uakari.primate.wisc.edu!crdgw1!rpi!utcsri!torn!newshub.ccs.yorku.ca!newshub.ariel.yorku.ca!cs911461
  2. From: cs911461@ariel.yorku.ca (CHRISTIAN D. ARMOUR)
  3. Newsgroups: comp.lang.c++
  4. Subject: Vector delete's anachronistic?
  5. Message-ID: <1992Sep7.193635.4742@newshub.ariel.yorku.ca>
  6. Date: 7 Sep 92 19:36:35 GMT
  7. Sender: news@newshub.ariel.yorku.ca (USENET News System)
  8. Distribution: all
  9. Organization: York University, Toronto, Canada
  10. Lines: 28
  11.  
  12.  
  13. Buenos dias netland,
  14.  
  15.  
  16. I'm wondering if there's anyone who could offer me some information
  17. on the following warning message from g++:
  18.  
  19. " Warning: use of vector delete is anachronistic "
  20.  
  21.  
  22. All the books I've read (not including the ARM, which I have not
  23. yet purchased) say that if I do this:
  24.  
  25.     string = new char [some_size];
  26.  
  27. then I have to do this to free it:
  28.  
  29.     delete string [some_size]
  30.  
  31.  
  32. I'm able to glean from these clues that specifying the size during
  33. deletion is the old way of doing things.  Can anyone tell me at 
  34. which point (which cfront version) this became no longer necessary?
  35.  
  36. Many thanks,
  37.  
  38. C. Armour-Kidson
  39. cs911461@ariel.yorku.ca
  40.