Boost C++ Libraries: Ticket #7624: Deduction failure https://svn.boost.org/trac10/ticket/7624 <p> This program fails: </p> <div class="wiki-code"><div class="code"><pre><span class="cp">#include</span> <span class="cpf">&lt;boost/phoenix.hpp&gt;</span><span class="cp"></span> <span class="cp">#include</span> <span class="cpf">&lt;boost/range/as_literal.hpp&gt;</span><span class="cp"></span> <span class="k">using</span> <span class="k">namespace</span> <span class="n">boost</span><span class="o">::</span><span class="n">phoenix</span><span class="o">::</span><span class="n">placeholders</span><span class="p">;</span> <span class="k">using</span> <span class="k">namespace</span> <span class="n">boost</span><span class="o">::</span><span class="n">phoenix</span><span class="p">;</span> <span class="kt">int</span> <span class="nf">main</span><span class="p">()</span> <span class="p">{</span> <span class="n">find</span><span class="p">(</span><span class="n">boost</span><span class="o">::</span><span class="n">as_literal</span><span class="p">(</span><span class="s">&quot;fox&quot;</span><span class="p">),</span> <span class="sc">&#39;x&#39;</span><span class="p">)();</span> <span class="c1">// works</span> <span class="n">find</span><span class="p">(</span><span class="n">boost</span><span class="o">::</span><span class="n">as_literal</span><span class="p">(</span><span class="s">&quot;fox&quot;</span><span class="p">),</span> <span class="n">construct</span><span class="o">&lt;</span><span class="kt">char</span><span class="o">&gt;</span><span class="p">(</span><span class="n">arg1</span><span class="p">))(</span><span class="sc">&#39;x&#39;</span><span class="p">);</span> <span class="c1">// works</span> <span class="n">find</span><span class="p">(</span><span class="n">boost</span><span class="o">::</span><span class="n">as_literal</span><span class="p">(</span><span class="s">&quot;fox&quot;</span><span class="p">),</span> <span class="n">arg1</span><span class="p">)(</span><span class="sc">&#39;x&#39;</span><span class="p">);</span> <span class="c1">// compilation error</span> <span class="p">}</span> </pre></div></div><p> Took hours to work out what was going on. Nature of the beast, I suppose. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/7624 Trac 1.4.3 Dave Abrahams Fri, 02 Nov 2012 02:01:08 GMT description changed https://svn.boost.org/trac10/ticket/7624#comment:1 https://svn.boost.org/trac10/ticket/7624#comment:1 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/7624?action=diff&amp;version=1">diff</a>) </li> </ul> Ticket John Fletcher <J.P.Fletcher@…> Sat, 01 Feb 2014 23:50:35 GMT <link>https://svn.boost.org/trac10/ticket/7624#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/7624#comment:2</guid> <description> <p> This compilation error does not appear with compilation for C++11 with clang 3.4 or gcc 4.8.2. </p> <p> Under further investigation. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Tue, 10 May 2016 14:58:05 GMT</pubDate> <title>status, version changed; resolution set; milestone deleted https://svn.boost.org/trac10/ticket/7624#comment:3 https://svn.boost.org/trac10/ticket/7624#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>version</strong> <span class="trac-field-old">Boost Release Branch</span> → <span class="trac-field-new">Boost 1.53.0</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-deleted">To Be Determined</span> </li> </ul> <p> It seems that fixed on 1.54 release. <a class="ext-link" href="http://melpon.org/wandbox/permlink/YinUntrMokRpqC4Z"><span class="icon">​</span>http://melpon.org/wandbox/permlink/YinUntrMokRpqC4Z</a> </p> Ticket