home *** CD-ROM | disk | FTP | other *** search
- 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
- From: cs911461@ariel.yorku.ca (CHRISTIAN D. ARMOUR)
- Newsgroups: comp.lang.c++
- Subject: Vector delete's anachronistic?
- Message-ID: <1992Sep7.193635.4742@newshub.ariel.yorku.ca>
- Date: 7 Sep 92 19:36:35 GMT
- Sender: news@newshub.ariel.yorku.ca (USENET News System)
- Distribution: all
- Organization: York University, Toronto, Canada
- Lines: 28
-
-
- Buenos dias netland,
-
-
- I'm wondering if there's anyone who could offer me some information
- on the following warning message from g++:
-
- " Warning: use of vector delete is anachronistic "
-
-
- All the books I've read (not including the ARM, which I have not
- yet purchased) say that if I do this:
-
- string = new char [some_size];
-
- then I have to do this to free it:
-
- delete string [some_size]
-
-
- I'm able to glean from these clues that specifying the size during
- deletion is the old way of doing things. Can anyone tell me at
- which point (which cfront version) this became no longer necessary?
-
- Many thanks,
-
- C. Armour-Kidson
- cs911461@ariel.yorku.ca
-