sdsl icon indicating copy to clipboard operation
sdsl copied to clipboard

assert() in access operations

Open mpetri opened this issue 13 years ago • 1 comments

it would be nice to have assert() statements in all access operators and for example rank() / select() function as it is quite easy to have an "off by one" error here.

it would not affect performance as assert() generates code if NDEBUG is not defined.

mpetri avatar Oct 04 '12 14:10 mpetri

I'm integrating this.

simongog avatar Oct 26 '12 01:10 simongog