Another try at the Sun workaround.

[SVN r52010]
This commit is contained in:
Peter Dimov
2009-03-27 12:50:09 +00:00
parent 61e9b93f7c
commit 91385ac627

View File

@@ -60,7 +60,18 @@ template<class T> T * addressof( T & v )
#if defined( __SUNPRO_CC ) && BOOST_WORKAROUND( __SUNPRO_CC, BOOST_TESTED_AT( 0x590 ) )
template<class T, int N> T (*addressof(T (&t)[N]))[N]
namespace detail
{
template<class T> struct addressof_addp
{
typedef T * type;
};
} // namespace detail
template< class T, std::size_t N >
typename detail::addressof_addp< T[N] >::type addressof( T (&t)[N] )
{
return &t;
}