Boost logo

Boost :

Subject: Re: [boost] bug-sprint #2114, 2 comments
From: Vladimir Prus (vladimir_at_[hidden])
Date: 2009-06-11 04:03:52


Ilya Sokolov wrote:

>> #if !defined BOOST_FOO_DETAIL_CONFIG_HPP
>> #define BOOST_FOO_DETAIL_CONFIG_HPP
>>
>> #if defined BOOST_FOO_BUILD_SHLIB
>> # define BOOST_FOO_DECL BOOST_SYMBOL_EXPORT
>> # define BOOST_FOO_EXCEPTION_DECL BOOST_EXCEPTION_EXPORT
>> #elif defined BOOST_FOO_USE_SHLIB
>> # define BOOST_FOO_DECL BOOST_SYMBOL_IMPORT
>> +# if defined BOOST_FOO_EXCEPTION_REEXPORT
>
> Exceptions should be re-exported by default, IMHO.

Probably so. If I have a library that users headers from another library
(maybe even header-only), then the default behaviour should be to export
all exceptions. Requiring that I explicitly list the libraries whose exceptions
I might throw sounds extremely risky.

- Volodya


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