Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2006-02-02 15:32:53


> Ronald Garcia wrote:
> > Hi Frank,
> >
> > There are no plans to add an at() member function. However, I have
> > considered adding bounds checking to MultiArray operator[]
> as a debug
> > mode option.
>
> What consideration are you making? Some lone time ago I added that
> boost::array. Can it hurt to add it?

As a user of multi array, I would like to have bounds checking for [] if
NDEBUG is not defined (or something similar). It helps a lot while
debugging. An assertion would be best.

Sohail


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net