[omniORB] throw clauses

Brian Neal bgneal at gmail.com
Fri Jan 26 07:42:17 GMT 2007


> From: Jeffrey Coffman <jcoffman98 at yahoo.com>
> Subject: [omniORB] throw clauses
>
> Using omniidl to generate c++ stubs, I notice that none of the generated code
> has a throw clause?

I consider that a good thing. Most C++ experts believe you should not
bother with exception specifications. It is widely believed they are
not useful and are even dangerous (e.g. the default behavior for
violating an exception specification is program termination). See, for
example, C++ Coding Standards, Item 75, by Sutter and Alexandrescu.



More information about the omniORB-list mailing list