default gcc visibility for exception types, <link>static requirement in test Jamfile.

[SVN r65763]
This commit is contained in:
Emil Dotchevski
2010-10-05 15:04:50 +00:00
parent 6d41b399d0
commit 56ae4311bb
3 changed files with 23 additions and 0 deletions

View File

@ -68,6 +68,7 @@ boost
boost::exception,
std::bad_alloc
{
~bad_alloc_() throw() { }
};
struct
@ -75,6 +76,7 @@ boost
boost::exception,
std::bad_exception
{
~bad_exception_() throw() { }
};
template <class Exception>
@ -104,6 +106,11 @@ boost
e = get_static_exception_object<Exception>();
}
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
class
unknown_exception:
public boost::exception,
@ -143,6 +150,11 @@ boost
#endif
}
};
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
namespace
exception_detail

View File

@ -189,6 +189,11 @@ boost
E const & set_info( E const &, throw_line const & );
}
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility push (default)
# endif
#endif
class
exception
{
@ -251,6 +256,11 @@ boost
mutable char const * throw_file_;
mutable int throw_line_;
};
#if defined(__GNUC__)
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
# pragma GCC visibility pop
# endif
#endif
inline
exception::