Boost C++ Libraries: Ticket #10982: addressof.hpp: should BOOST_ASIO_HAS_STD_ADDRESSOF be replaced with BOOST_NO_CXX11_ADDRESSOF ? https://svn.boost.org/trac10/ticket/10982 <p> Hi, </p> <p> I'm on the border-line with compilers supporting (or not) various C++0x versions, and found this to be an issue: boost config already contains a macro: </p> <p> BOOST_NO_CXX11_ADDRESSOF </p> <p> However, in <a class="missing wiki">BoostAsio</a> - this looks like a duplication that really ignores the config, and in order to compile asio BOOST_ASIO_HAS_STD_ADDRESSOF needs also be defined. </p> <p> Shouldn't it be replaced by BOOST_NO_CXX11_ADDRESSOF defined in config instead? </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10982 Trac 1.4.3 lukasz.forynski@… Thu, 29 Jan 2015 14:02:40 GMT <link>https://svn.boost.org/trac10/ticket/10982#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/10982#comment:1</guid> <description> <p> Sorry, I did not dig into problem deep enough, it looks like my compiler: gcc 4.5.3 does not support std::addressof, thus boost::asio config does not set it properly in asio/detail/config.hpp. Should the check go deaper and include <span class="underline">GNUC_PATCHLEVEL</span> perhaps? </p> <p> But still, it looks like the global config gets ignored, i.e. shouldn't </p> <blockquote> <p> BOOST_NO_CXX11_ADDRESSOF imply: BOOST_ASIO_HAS_STD_ADDRESSOF ? </p> </blockquote> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Fri, 13 Feb 2015 18:27:53 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/10982#comment:2 https://svn.boost.org/trac10/ticket/10982#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket