Boost C++ Libraries: Ticket #11821: clang-cl fails using typeof.hpp https://svn.boost.org/trac10/ticket/11821 <p> clang-cl svn (<a class="missing changeset" title="No changeset 253440 in the repository">r253440</a>) fails to compile </p> <pre class="wiki">#include &lt;boost/typeof/typeof.hpp&gt; </pre><p> with: </p> <pre class="wiki">typeof_impl.hpp:150:31: error: template specialization or definition requires a template parameter list corresponding to the nested type 'base_type' (aka 'msvc_extract_type&lt;ID&gt;') struct base_type::id2type // This uses nice VC6.5 and VC7.1 bugfeature ~~~~~~~~~ ^ </pre><p> this is due to BOOST_MSVC not defined. When this is worked around with -DBOOST_MSVC=1800, there is another failure in the same file: </p> <pre class="wiki">typeof_impl.hpp:125:20: error: explicit specialization of non-template struct 'id2type_impl' struct id2type_impl&lt;true&gt; //VC8.0 specific bugfeature ^ ~~~~~~ </pre><p> please see ideas to fix at </p> <blockquote> <p> <a class="ext-link" href="https://llvm.org/bugs/show_bug.cgi?id=25644"><span class="icon">​</span>https://llvm.org/bugs/show_bug.cgi?id=25644</a> </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11821 Trac 1.4.3 Yaron Keren <yaron.keren@…> Sun, 06 Dec 2015 14:11:20 GMT <link>https://svn.boost.org/trac10/ticket/11821#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11821#comment:1</guid> <description> <p> The fix to boost is to modify typeof.hpp:52 from </p> <pre class="wiki"> #elif defined(__GNUC__) </pre><p> to </p> <pre class="wiki"> #elif defined(__GNUC__) || defined(__clang__) </pre><p> taking indeed the "<span class="underline">typeof</span>" branch before the msvc hacks branch. </p> </description> <category>Ticket</category> </item> <item> <author>steinar+boost@…</author> <pubDate>Thu, 06 Jul 2017 10:14:57 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/11821#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11821#comment:2</guid> <description> <p> Still there in 1.64.0. Is there a way to get this in? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>awulkiew</dc:creator> <pubDate>Tue, 29 Aug 2017 13:00:05 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/11821#comment:3 https://svn.boost.org/trac10/ticket/11821#comment:3 <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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.65.0</span> </li> </ul> <p> Fixed in 1.65: <a class="ext-link" href="https://github.com/boostorg/typeof/pull/3"><span class="icon">​</span>https://github.com/boostorg/typeof/pull/3</a> </p> Ticket