Fix unsupported use of BOOST_SYMBOL_VISIBLE on Sun C++

This commit is contained in:
Peter Dimov
2020-01-24 20:59:12 +02:00
parent 7ba160e443
commit 6942dc454b
2 changed files with 5 additions and 2 deletions
+3 -2
View File
@@ -355,7 +355,10 @@ constexpr error_category const & generic_category() BOOST_NOEXCEPT
#else // #if defined(BOOST_SYSTEM_HAS_CONSTEXPR)
#if !defined(__SUNPRO_CC) // trailing __global is not supported
inline error_category const & system_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE;
inline error_category const & generic_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE;
#endif
inline error_category const & system_category() BOOST_NOEXCEPT
{
@@ -363,8 +366,6 @@ inline error_category const & system_category() BOOST_NOEXCEPT
return system_category_instance;
}
inline error_category const & generic_category() BOOST_NOEXCEPT BOOST_SYMBOL_VISIBLE;
inline error_category const & generic_category() BOOST_NOEXCEPT
{
static const detail::generic_error_category generic_category_instance;