
2 Mar
2009
2 Mar
'09
8:12 p.m.
Frank Mori Hess skrev:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Monday 02 March 2009, Thorsten Ottosen wrote:
Ok, but can you determine the size of the buffer in advance, so you can call reserve?
Yes. If you're proposing adding the ability to grow an auto_buffer's capacity after it is constructed via a reserve() call, I could live with that.
No, I was actually advocating the that push_back should not grow. But as pointed out in another part of this thread, we need both cases. push_back() push_back_unchecked() you will be able to use the latter, which is more efficient. -Thorsten