
14 Oct
2011
14 Oct
'11
2:48 p.m.
2011/10/14 Ion Gaztañaga <igaztanaga@gmail.com>: but we currently have no
push_back preconditions for push_back, insert, etc. and this can be a great source of mistakes.
I agree. And unlike at() vs. operator[], in this case we are moving enforcement of the class invariants from the class itself the caller, just to save an "if" check. I really don't want to see a policy controlling this; rather, have unchecked_push_back and unchecked_insert for those who need every ounce of performance at the expense of safety. -- Nevin ":-)" Liber <mailto:nevin@eviloverlord.com> (847) 691-1404