From b5dcd204e551e8efe3610a5880006ccc9a4371fc Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Mon, 25 Dec 2017 17:20:51 +0000 Subject: [PATCH] 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::". --- include/boost/core/addressof.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/boost/core/addressof.hpp b/include/boost/core/addressof.hpp index 8ddda8b..4407ca5 100644 --- a/include/boost/core/addressof.hpp +++ b/include/boost/core/addressof.hpp @@ -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::get(o, 0); + return boost::detail::address_of::get(o, 0); #else - return detail::address_of::get(detail::addressof_ref(o), 0); + return boost::detail::address_of:: + get(boost::detail::addressof_ref(o), 0); #endif }