Changeset 543 for library

Show
Ignore:
Timestamp:
08/17/09 16:12:45 (15 years ago)
Author:
vbarta
Message:

added unit test documentation

Location:
library/doc/local
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • library/doc/local/memory_management.dox

    r541 r543  
    3838itself). Specific exceptions may provide stronger guarantees, as 
    3939documented for specific cases. All exceptions thrown out of the 
    40 library are descendants of std::exception. 
     40library are descendants of std::exception. Since they're organized 
     41into a class hierarchy, they should be caught by reference: 
     42 
     43\code 
     44try { 
     45        mpdf* mtmp = UI::build<mpdf> (_Sources, i); 
     46        Sources (i) = mtmp; 
     47} catch (UIException &exc) { 
     48\endcode 
     49 
     50This saves one call to copy constructor and prevents slicing. 
    4151 
    4252\section Pointers