|
From: Greg C. <chi...@co...> - 2005-01-26 17:04:04
|
On 2005-01-26 09:09 AM, Paul wrote: > > SourceForge.net wrote: > >> Read and respond to this message at: >> https://sourceforge.net/forum/message.php?msg_id=2959982 >> By: chicares >> >> You catch this way: >> catch (exception e) > > don't you catch this way? > catch (exception & e) > to avoid slicing the class? Yes, I do. In that reply, I was merely trying to show that the OP's throw-expression was incompatible with his handler's exception-declaration. Fixing that problem demonstrates that the test case doesn't actually have anything to do with exceptions crossing a dll boundary, as he originally thought. You might like to point out the slicing problem and perhaps make some other instructive points (about exception safety or exception-specifications, e.g.) on the web 'forum'. I try to avoid the 'forums' myself, especially for lengthy discussions, but I couldn't resist examining the test case because it might have indicated a severe problem. |