|
Boost : |
From: Martin (adrianm_at_[hidden])
Date: 2004-05-27 10:26:03
How do I update the length after using buffer() ?
Only way I see is:
FuncThatFillString(str.buffer(), str.capacity());
str.resize(strlen(str.c_str())); // c_str to avoid fixed_string overload
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk