You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
The text was updated successfully, but these errors were encountered:
gnzlbg
changed the title
Explore the possibility of adding a third template parameter to configure the error behavior when the precondition size < capacity() is violated
Consider third template parameter to configure error semantics on precondition violation
Jan 31, 2018
Nicolai Josuttis wrote (talking about how to error when e.g. push_back is executed on a
fixed_capacity_vector
that is already full):The text was updated successfully, but these errors were encountered: