Nicolai Josuttis wrote (talking about how to error when e.g. push_back is executed on a fixed_capacity_vector that is already full):
How about adding a third optional template argument?
With the default being to throw.
(experts are good enough experts to be able to disable overflows).
And the optional template argument should be an enum not a bool
(where we can specify that implementations may add other modes).
Nicolai Josuttis wrote (talking about how to error when e.g. push_back is executed on a
fixed_capacity_vector
that is already full):