dsharlet / array

C++ multidimensional arrays in the spirit of the STL
Apache License 2.0
198 stars 15 forks source link

Bounds issues should be reported consistently #10

Closed dsharlet closed 4 years ago

dsharlet commented 4 years ago

Functions which can fail due to bounds issues should use a consistent reporting mechanism. std::out_of_range is used by the STL for std::vector::at, which motivates using that consistently everywhere. However, constructing a dim with a runtime value inconsistent with the compile-time constant produces an assert.