Subject: [Boost-bugs] [Boost C++ Libraries] #10311: addressof and Solaris Studio compiler
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-08-04 15:59:04
#10311: addressof and Solaris Studio compiler
-------------------------------+---------------------------
Reporter: maxim.kartashev@⦠| Owner: no-maintainer
Type: Bugs | Status: new
Milestone: To Be Determined | Component: utility
Version: Boost 1.55.0 | Severity: Problem
Keywords: |
-------------------------------+---------------------------
This is a request to extend resolution to Ticket #7079; recent version
(5.13) of Oracle Solaris Studio compiler handles overloading better and
workaround confuses it. Also, this solution makes recent compiler pass
libs/utility/addressof_test2.cpp test.
{{{
$ diff -C4 boost/utility/addressof.hpp.old boost/utility/addressof.hpp
*** boost/utility/addressof.hpp.old Mon Aug 4 19:21:05 2014
--- boost/utility/addressof.hpp Mon Aug 4 19:27:46 2014
***************
*** 49,57 ****
} // namespace detail
template<class T> T * addressof( T & v )
{
! #if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__,
BOOST_TESTED_AT( 0x610 ) ) ) || defined( __SUNPRO_CC )
return boost::detail::addressof_impl<T>::f( v, 0 );
#else
--- 49,57 ----
} // namespace detail
template<class T> T * addressof( T & v )
{
! #if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__,
BOOST_TESTED_AT( 0x610 ) ) ) || (defined(__SUNPRO_CC) && (__SUNPRO_CC <=
0x5120))
return boost::detail::addressof_impl<T>::f( v, 0 );
#else
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10311> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:16 UTC