Throwing exception in C++ is very expensive operation. But, "try... catch..." itself doesn't drain performance if exception is not thrown. So, "Throwing exception" should not be used for just convenience in coding!! This should be used only to handle unexpected and not-often-raised exception!
'Language > C&C++' 카테고리의 다른 글
[C++] C++ Pointer fixups... (0) | 2008.04.26 |
---|---|
[C/C++] Simple example of using 'typename' (0) | 2008.04.22 |
[C/C++] Attention! Integer-operation to avoid float-operation... (0) | 2008.03.21 |
[C/C++] API to getting bufferred data... (0) | 2008.01.06 |
[C/C++] Use instantiate-function(factory function) to hide concreate class... (0) | 2007.12.13 |