Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2004-02-11 11:25:24


"Brock Peabody" <brock.peabody_at_[hidden]> writes:

>> -----Original Message-----
>> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
>> On Behalf Of David Abrahams
>
>> No, I'm referring to the great deal of compile-time machinery needed
>> to generate a structure which can ultimately be done nearly as
>> efficiently at runtime.
>
> I'm not concerned about efficiency so much as ease of use. How do you
> register an exception class?

http://boost-consulting.com/boost/libs/python/doc/v2/exception_translator.html#examples

> Does it have to be derived from a base class
> in the library?

No.

>> Generally if you have a bunch of interacting libraries it makes sense
>> for each one to be able to register its exception
>> serializers/deserializers/translators or whatever. Why should the
>> thread invoker have to enumerate the possibilities each time?
>
> The invoker could store often used lists in typedefs. They could easily add
> or remove exceptions from these.

That doesn't sound like ease-of-use to me.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk