Boost logo

Boost :

From: Dean Foster (foster_at_[hidden])
Date: 2001-09-13 05:49:59


> I
> feel having two different methods, operator[](int) and
> at(int), to specify whether you want to have index
> checking is bad design.

I agree. But, I might argue we should still leave at() in the code.
So operator[] should be able to be checked when debug is on and not
checked when it is off. BUT, at() should be checked all the time.
That way you can choose to have production code that is more stable if
desired by using at().

dean

=============================================================================
Dean Foster dean_at_[hidden]
Statistics, Wharton, U. Penn 215 898 8233
Philadelphia PA 19104-6302 http://diskworld.wharton.upenn.edu


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk