1 Sep
2019
1 Sep
'19
10:45 a.m.
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().