Hi Daniel,

On Thu, Aug 04, 2005 at 18:00:21 +0200, Daniel Bölzle wrote:

> additional tip: always catch by reference (Exception &), saving an extra
> copy construction.

Not only saving copy construction, but also preventing slicing off
derived classes in case only a base class is caught and the exception is
re-thrown. Also matters if the exception is modified and re-thrown, the
modifications would be lost.

  Eike

-- 
 OOo/SO Calc core developer. Number formatter bedevilled I18N transpositionizer.
 GnuPG key 0x293C05FD:  997A 4C60 CE41 0149 0DB3  9E96 2F1A D073 293C 05FD

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to