1
0
forked from boostorg/core

address_of.hpp: VC12 namespace ambiguity

I'm seeing compiler errors with vc12, when testing serialization of Boost.Multiprecision types - there is ambiguity between boost::detail and boost::multiprecision::detail.  I assume the error occurs for serialization of any type that has it's own detail namespace.  The fix is trivially to qualify the use of "detail::".
This commit is contained in:
jzmaddock
2017-12-25 17:20:51 +00:00
committed by Glen Fernandes
parent 081ca76d6c
commit b5dcd204e5

View File

@ -127,9 +127,10 @@ addressof(T& o) BOOST_NOEXCEPT
{
#if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x610)) || \
BOOST_WORKAROUND(__SUNPRO_CC, <= 0x5120)
return detail::address_of<T>::get(o, 0);
return boost::detail::address_of<T>::get(o, 0);
#else
return detail::address_of<T>::get(detail::addressof_ref<T>(o), 0);
return boost::detail::address_of<T>::
get(boost::detail::addressof_ref<T>(o), 0);
#endif
}