summaryrefslogtreecommitdiff
path: root/boost/core/addressof.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/core/addressof.hpp')
-rw-r--r--boost/core/addressof.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/core/addressof.hpp b/boost/core/addressof.hpp
index 6a770e21a6..889b5825e1 100644
--- a/boost/core/addressof.hpp
+++ b/boost/core/addressof.hpp
@@ -107,7 +107,7 @@ template<class T>
BOOST_FORCEINLINE
T * addressof( T & v )
{
-#if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x610 ) ) ) || defined( __SUNPRO_CC )
+#if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__, BOOST_TESTED_AT( 0x610 ) ) ) || (defined(__SUNPRO_CC) && BOOST_WORKAROUND(__SUNPRO_CC, <= 0x5120))
return boost::detail::addressof_impl<T>::f( v, 0 );