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:

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



Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at