[Dune] [#1030] Bounds checking
Dune
flyspray at dune-project.org
Tue Jan 24 18:55:43 CET 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
The following task has a new comment added:
FS#1030 - Bounds checking
User who did this - Andreas Lauser (andlaus)
----------
you could also add
void checkIndex_(int i)
{
#if BOUNDS_CHECKING
assert(0 <= i <= dimension);
#endif
};
to all classes wehere you want to do bounds checking. this would have the same run-time efficiency as littering the code with #if's but would be much more readable. just my 2c.
----------
More information can be found at the following URL:
http://www.dune-project.org/flyspray/index.php?do=details&task_id=1030#comment3105
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune
mailing list