
11 Jun
2009
11 Jun
'09
8:03 a.m.
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