From 08d62ac444883f8c78bdaa79d255408a7336d1ff Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 12 Jun 2021 05:42:03 +0300 Subject: [PATCH] Restore Sun workaround --- include/boost/system/detail/error_category.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/boost/system/detail/error_category.hpp b/include/boost/system/detail/error_category.hpp index b649ef9..8b5ba51 100644 --- a/include/boost/system/detail/error_category.hpp +++ b/include/boost/system/detail/error_category.hpp @@ -155,9 +155,11 @@ public: } #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) - +# if defined(__SUNPRO_CC) // trailing __global is not supported + operator std::error_category const & () const; +# else operator std::error_category const & () const BOOST_SYMBOL_VISIBLE; - +# endif #endif };