Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost] [core] [addressof.hpp] [addressof_test2.cpp] ISO C++ says that these are ambiguous
From: Sergey Sprogis (sergey.sprogis_at_[hidden])
Date: 2014-12-25 15:19:11


Peter Dimov wrote:

> That's probably because of the __SUNPRO_CC workaround at
addressof.hpp line 110:
> #if (defined( __BORLANDC__ ) && BOOST_WORKAROUND( __BORLANDC__,
> BOOST_TESTED_AT( 0x610 ) ) ) || defined( __SUNPRO_CC )
> return boost::detail::addressof_impl<T>::f( v, 0 );
> #else
> return boost::detail::addressof_impl<T>::f(
> boost::detail::addr_impl_ref<T>( v ), 0 );
> #endif
....

Thanks Peter,

Exactly, this is the reason for addressof_test2.cpp test's failure with
Oracle Studio 12.4 compiler.
The only issue here is that there is 5 months old opened bug with
proposed fix to cure this:

https://svn.boost.org/trac/boost/ticket/10311

  I'd really appreciate it if someone will pay attention to this bug,
and will insert proposed simple 1 line fix in trunk area.

Thanks,

Sergey


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net