Boost C++ Libraries: Ticket #12537: Undefined BOOST_WORKAROUND in boost/math/tools/tuple.hpp https://svn.boost.org/trac10/ticket/12537 <p> This workaround has been added in 1.62. The issue was not present with Boost 1.61. </p> <p> /usr/local/include/boost/math/tools/tuple.hpp:10:60: error: token is not a valid binary operator in a preprocessor subexpression #if !defined(BOOST_NO_CXX11_HDR_TUPLE) &amp;&amp; !BOOST_WORKAROUND(BOOST_GCC_VERSION, &lt; 40500) </p> <p> The particular line is here: <a class="ext-link" href="https://github.com/boostorg/math/blob/70251d14429c11578a9940cf7b9fb7fe13865421/include/boost/math/tools/tuple.hpp#L10"><span class="icon">​</span>https://github.com/boostorg/math/blob/70251d14429c11578a9940cf7b9fb7fe13865421/include/boost/math/tools/tuple.hpp#L10</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12537 Trac 1.4.3 anonymous Wed, 19 Oct 2016 17:53:02 GMT <link>https://svn.boost.org/trac10/ticket/12537#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12537#comment:1</guid> <description> <p> I am wondering if users of Boost math library are required to include "boost/math/config.hpp" before? This file seems to include "boost/detail/workaround.hpp"... </p> <p> <a class="ext-link" href="https://github.com/boostorg/math/blob/develop/include/boost/math/tools/config.hpp"><span class="icon">​</span>https://github.com/boostorg/math/blob/develop/include/boost/math/tools/config.hpp</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Wed, 19 Oct 2016 18:30:10 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/12537#comment:2 https://svn.boost.org/trac10/ticket/12537#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> It's a bug, fixed in <a class="ext-link" href="https://github.com/boostorg/math/commit/3370ea2f794b8e36214eb4fadfccee01e109eb81"><span class="icon">​</span>https://github.com/boostorg/math/commit/3370ea2f794b8e36214eb4fadfccee01e109eb81</a> </p> <p> Note however that this is an undocumented internal header, if at some time we stop supporting pre-c++11 compilers then this header will probably disappear. </p> Ticket andreas.schuh.84@… Wed, 19 Oct 2016 18:39:06 GMT <link>https://svn.boost.org/trac10/ticket/12537#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12537#comment:3</guid> <description> <p> Thanks for the quick reply. Fair point, I've updated our code to use std::tuple instead. </p> </description> <category>Ticket</category> </item> </channel> </rss>