2 Dec
2019
2 Dec
'19
6:02 p.m.
On Mon, Dec 2, 2019 at 11:48 AM Peter Dimov via Boost
Zach Laine wrote:
I don't find it natural that a type whose size is statically known and a type whose size is not statically known have the same relationship to user code (preconditions, use of UB vs. exceptions, etc.).
But the size of the proposed fixed_string isn't statically known. Its capacity is.
Right, thanks. I wrote "size" when I meant "capacity". I think the point remains the same, however. I know statically how much room I have in which to operate, as opposed to having a runtime-variable amount of room. Zach