Boost C++ Libraries: Ticket #5669: Intel compiler failure to compile duration.hpp https://svn.boost.org/trac10/ticket/5669 <p> This ticket is to keep track of the issue first surfaced here: <a class="ext-link" href="http://comments.gmane.org/gmane.comp.lib.boost.user/68421"><span class="icon">​</span>http://comments.gmane.org/gmane.comp.lib.boost.user/68421</a> </p> <p> and continued here: <a class="ext-link" href="http://comments.gmane.org/gmane.comp.lib.boost.user/68784"><span class="icon">​</span>http://comments.gmane.org/gmane.comp.lib.boost.user/68784</a> </p> <p> In further discussion with Vicente, it turns out that the Intel Compiler (12.0 and 12.1 beta) for some strange reason requires an additional set of parenthesis around the first operand for the &amp;&amp; operator, despite the existence of a set of parenthesis. </p> <p> Essentially the following snippet won't work, </p> <p> bool = ( (boost::is_convertible&lt;typename Duration::rep, typename common_type&lt;typename Duration::rep, Rep2&gt;::type&gt;::value) &amp;&amp; (boost::is_convertible&lt;Rep2, typename common_type&lt;typename Duration::rep, Rep2&gt;::type&gt;::value) ) </p> <p> but </p> <p> bool = ( ((boost::is_convertible&lt;typename Duration::rep, typename common_type&lt;typename Duration::rep, Rep2&gt;::type&gt;::value)) &amp;&amp; (boost::is_convertible&lt;Rep2, typename common_type&lt;typename Duration::rep, Rep2&gt;::type&gt;::value) ) works. </p> <p> This is almost certainly a bug in the Intel Compiler. I will be seeking additional advice on the dev ML and Intel Premier Support on this. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5669 Trac 1.4.3 Edward Rankin <erankin@…> Tue, 05 Jul 2011 08:32:04 GMT <link>https://svn.boost.org/trac10/ticket/5669#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5669#comment:1</guid> <description> <p> I have decided to use the Intel Software forums first. You can follow the discussion with Intel reps here: <a class="ext-link" href="http://software.intel.com/en-us/forums/showthread.php?t=84061"><span class="icon">​</span>http://software.intel.com/en-us/forums/showthread.php?t=84061</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>anonymous</dc:creator> <pubDate>Wed, 06 Jul 2011 23:06:53 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/5669#comment:2 https://svn.boost.org/trac10/ticket/5669#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> Fix committed on <a class="missing ticket">#72938</a>. </p> Ticket Edward Rankin <erankin@…> Mon, 25 Jul 2011 11:17:10 GMT <link>https://svn.boost.org/trac10/ticket/5669#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5669#comment:3</guid> <description> <p> Intel created a ticket in their internal bug tracking system. Hopefully it will be fixed soon. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sat, 03 Sep 2011 14:29:17 GMT</pubDate> <title>milestone changed https://svn.boost.org/trac10/ticket/5669#comment:4 https://svn.boost.org/trac10/ticket/5669#comment:4 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.48.0</span> </li> </ul> Ticket Edward Rankin <erankin@…> Wed, 25 Jan 2012 11:52:30 GMT <link>https://svn.boost.org/trac10/ticket/5669#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/5669#comment:5</guid> <description> <p> Intel has provided feedback that the issue has been resolved. I have tested to verify that it indeed works with Boost 1.48 (with the removal of the parenthesis). Vicente, do you plan to reverse the patch, now that Intel has fixed the compiler? </p> </description> <category>Ticket</category> </item> </channel> </rss>