On 2003/03/13 14:16, Andreas Happe <[EMAIL PROTECTED]> wrote: > i understand under a assertion something in the way of an > ASSERT(expression); which terminates the programm, if the exception is > false and debug mode is activated. It should print out a detailed error
Assertions are available in ANSI C. See man 3 assert. Not a feature of C++. Nice, isn't it? > how large is the performance impact of using RTTI with gcc? How does RTTI affect the performance? AFAIK (I havn't used RTTI too often myself), RTTI makes the binary a little bit larger due to additional information compiled in. Sure, evaluating RTTI data takes cpu cycles, but if you need it, you need it, and every other way to do that takes the same cpu cycles. Next question: is RTTI better or worse than the equivalent in ion? max
