Boost.MultiArray bounds checking

I'm using boost 1.32, and boost::multi_array doesn't seem to provide any bounds-checked access. I'm curious if there are any plans to add a bounds-checked at() member function to complement the [] operator? Or, is there some reason it is impractical? -- Frank

Hi Thorsten, Honestly, I was just considering whether it would be worth while to take the time to do so. Given the amount of interest shown here, I have gone ahead and added range checking to the value accessor operator[]() and the element accessor operator()(). The range checks are based on boost/assert.hpp: they can be disabled by either defining BOOST_DISABLE_ASSERTS or NDEBUG. I have yet to update the documentation to reflect this, but I thought it wise to announce the feature addition. Cheers, ron On Feb 2, 2006, at 2:15 PM, Thorsten Ottosen wrote:
participants (3)
-
Frank Hess
-
Ronald Garcia
-
Thorsten Ottosen