Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Kazutoshi Satoda <k_satoda@f2.dion.ne.jp> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: Defect Report: Unclear wording about capacity of temporary buffers |
| Date | 2011-08-28 08:40 -0700 |
| Organization | unknown |
| Message-ID | <4E58F9D5.4060302@f2.dion.ne.jp> (permalink) |
Martin Bonner wrote: >> >> I read this as prohibiting to return a buffer of which capacity is less >> than n, because such a buffer is not sufficient to store n objects. > > Correct. What other reading is possible? > >> Now I propose the following wordings. > > Sorry, you haven't explained what is wrong with the current wording. My above reading, and your reading, render many existing implementations (which can return a buffer of which capacity is less than n) non-conforming. http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/include/bits/stl_tempbuf.h?revision=169421&view=markup#l67 -- k_satoda [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next | Find similar
Re: Defect Report: Unclear wording about capacity of temporary buffers Kazutoshi Satoda <k_satoda@f2.dion.ne.jp> - 2011-08-28 08:40 -0700
csiph-web