Boost C++ Libraries: Ticket #12733: construct no longer supports automatic conversion from char* to std::string https://svn.boost.org/trac10/ticket/12733 <p> Given: </p> <div class="wiki-code"><div class="code"><pre><span class="n">foo</span> <span class="p">{</span> <span class="k">explicit</span> <span class="n">foo</span><span class="p">(</span><span class="k">const</span> <span class="n">std</span><span class="o">::</span><span class="n">string</span> <span class="o">&amp;</span><span class="p">);</span> <span class="p">};</span> </pre></div></div><p> ...this use of <code>boost::phoenix::construct</code> now fails in Boost 1.63.0 (using Apple Clang 8.0): </p> <div class="wiki-code"><div class="code"><pre><span class="n">boost</span><span class="o">::</span><span class="n">phoenix</span><span class="o">::</span><span class="n">construct</span><span class="o">&lt;</span><span class="n">foo</span><span class="o">&gt;</span><span class="p">(</span><span class="s">&quot;str&quot;</span><span class="p">);</span> </pre></div></div><p> The issue can be worked around by explicitly constructing a <code>std::string</code>: </p> <div class="wiki-code"><div class="code"><pre><span class="n">boost</span><span class="o">::</span><span class="n">phoenix</span><span class="o">::</span><span class="n">construct</span><span class="o">&lt;</span><span class="n">foo</span><span class="o">&gt;</span><span class="p">(</span><span class="n">std</span><span class="o">::</span><span class="n">string</span><span class="p">{</span><span class="s">&quot;str&quot;</span><span class="p">});</span> </pre></div></div><p> ...however, the automatic conversion from <code>char*</code> worked in Boost 1.62.0. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12733 Trac 1.4.3 Nikita Kniazev <nok.raven@…> Sun, 24 Dec 2017 16:47:54 GMT <link>https://svn.boost.org/trac10/ticket/12733#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/12733#comment:1</guid> <description> <p> This is problem in C++11 interface. </p> <p> Should be fixed in <a class="ext-link" href="https://github.com/boostorg/phoenix/pull/58"><span class="icon">​</span>https://github.com/boostorg/phoenix/pull/58</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Kohei Takahashi</dc:creator> <pubDate>Wed, 07 Feb 2018 14:43:38 GMT</pubDate> <title>status, milestone changed; resolution set https://svn.boost.org/trac10/ticket/12733#comment:2 https://svn.boost.org/trac10/ticket/12733#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> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.67.0</span> </li> </ul> Ticket