- Timestamp:
- 08/17/09 16:12:45 (16 years ago)
- Location:
- library/doc/local
- Files:
-
- 1 added
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified library/doc/local/memory_management.dox ¶
r541 r543 38 38 itself). Specific exceptions may provide stronger guarantees, as 39 39 documented for specific cases. All exceptions thrown out of the 40 library are descendants of std::exception. 40 library are descendants of std::exception. Since they're organized 41 into a class hierarchy, they should be caught by reference: 42 43 \code 44 try { 45 mpdf* mtmp = UI::build<mpdf> (_Sources, i); 46 Sources (i) = mtmp; 47 } catch (UIException &exc) { 48 \endcode 49 50 This saves one call to copy constructor and prevents slicing. 41 51 42 52 \section Pointers