Boost logo

Boost :

From: Bjorn Reese (breese_at_[hidden])
Date: 2019-09-01 10:45:25

On 8/29/19 3:24 PM, Roberto Hinz via Boost wrote:

> auto result = csw.finish();
> if (result.truncated) {
> // ...

I suggest that you change the return type of finish() to contain
the number of element written instead of the truncated boolean.
This would make outbuf extensible to binary data as well where you
cannot rely on a terminating zero to tell you how much data has
been written.

The return type could also have begin()/end() member functions, which
makes it directly usable with STL algorithms. In that case it would
also make sense to have data()/size().

Boost list run by bdawes at, gregod at, cpdaniel at, john at