
28 Jan
2011
28 Jan
'11
2:24 p.m.
On 28 January 2011 04:13, Boris Kolpackov <boris@codesynthesis.com> wrote:
Hi Christian,
Christian Holmquist <c.holmquist@gmail.com> writes:
What's missing in asio's buffer interface that you would like to add?
Memory management and common functions such as copy, append, etc. Asio buffers are just wrappers for the void*, size_t pair.
Then std::vector<char> is a better option. You wrote earlier that the code is a bit ugly when using the std::vector in certain circumstances, but I'm sure people will argue the same with a new invention. I don't understand why you say std::vector doesn't have copy and append? std::vector<char> a; std::vector<char> b; a = b; // copy a.insert(a.end(), b.begin(), b.end()); // append - Christian