Re: Does Anyone Compile Aspell with -DNDEBUG?
Kevin Atkinson <[email protected]> Sun, 1 Jun 2008 04:22:54 -0600 (MDT)
| Newsgroups | gmane.comp.gnu.aspell.devel |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 1 Jun 2008, Peter Kümmel wrote: > Kevin Atkinson wrote: >> >> If so stop. Most asserts perform important safety checks and disabling >> them could lead to data corruption and other nasty things. Also, they >> should have a negligible effect on performance. > > I'm not sure if this is correct, STL checks could be expensive even when > optimizing the code. Can you please show me proof of this. > And using _DEBUG to ensure correct code in release mode is not the common > way to use the safety checks. Crashing is never the correct thing to do, but if there is a bug it may prevent more serious problems down the road. _______________________________________________ Aspell-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/aspell-devel