Boost C++ Libraries: Ticket #5135: Syntax error, if boost/thread.hpp is included before boost/icl/... https://svn.boost.org/trac10/ticket/5135 <p> If &lt;boost/thread.hpp&gt; is included before code that uses the BOOST_STATIC_CONSTANT Macro inside certain templates, it influences compilation: Code that has compiled well, produces a syntax error C2059 under msvc-9/10. This can be fixed by enclosing certain subexpressions in parentheses. The problem does not occur for gcc compilers. </p> <p> Although the bug can be fixed inserting paretheses into code from Boost.Icl it would be much better to fix the cause of the bug inside code included in &lt;boost/thread.hpp&gt;. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5135 Trac 1.4.3 Joachim Faulhaber <afojgo@…> Thu, 27 Jan 2011 22:23:48 GMT attachment set https://svn.boost.org/trac10/ticket/5135 https://svn.boost.org/trac10/ticket/5135 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">fix_include_after_thread.cpp</span> </li> </ul> <p> Minimal code to reproduce the error </p> Ticket Joachim Faulhaber Thu, 27 Jan 2011 23:24:49 GMT <link>https://svn.boost.org/trac10/ticket/5135#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5135#comment:1</guid> <description> <p> The bug has been fixed on the trunk. 2 Tests are added: </p> <ol><li>Test "fix_include_after_thread" provides a minimal example of the bug and its fix. </li><li>Test "fix_icl_after_thread" checks if the bug is fixed for icl production code. </li></ol><p> The fix can now be merged into the release branch as soon as permission is given by the release managers. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Joachim Faulhaber</dc:creator> <pubDate>Mon, 31 Jan 2011 18:10:35 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5135#comment:2 https://svn.boost.org/trac10/ticket/5135#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> Ticket