mirror of
https://github.com/boostorg/throw_exception.git
synced 2025-07-30 04:17:14 +02:00
Use default visibility for exception_detail::clone_impl<>
When building code with hidden visibility on ELF, exception classes must explicitly use the default visibility for catching to work across shared objects; the same must be done for all their base classes. While other classes in the boost::exception_detail namespace had visibility adjusted accordingly, clone_impl<T> didn't, so remedy that.
This commit is contained in:
@ -432,6 +432,11 @@ boost
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
|
||||||
|
# pragma GCC visibility push (default)
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
template <class T>
|
template <class T>
|
||||||
class
|
class
|
||||||
clone_impl:
|
clone_impl:
|
||||||
@ -473,6 +478,11 @@ boost
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
#if defined(__GNUC__)
|
||||||
|
# if (__GNUC__ == 4 && __GNUC_MINOR__ >= 1) || (__GNUC__ > 4)
|
||||||
|
# pragma GCC visibility pop
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
inline
|
inline
|
||||||
|
Reference in New Issue
Block a user