[Boost-bugs] [Boost C++ Libraries] #12733: construct no longer supports automatic conversion from char* to std::string

Subject: [Boost-bugs] [Boost C++ Libraries] #12733: construct no longer supports automatic conversion from char* to std::string
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-06 15:46:15


#12733: construct no longer supports automatic conversion from char* to std::string
----------------------------------------+------------------------
 Reporter: Braden McDaniel <braden@…> | Owner: theller
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: phoenix
  Version: Boost 1.63.0 | Severity: Regression
 Keywords: |
----------------------------------------+------------------------
 Given:
 {{{#!c++
 foo {
   explicit foo(const std::string &);
 };
 }}}
 ...this use of `boost::phoenix::construct` now fails in Boost 1.63.0
 (using Apple Clang 8.0):
 {{{#!c++
 boost::phoenix::construct<foo>("str");
 }}}
 The issue can be worked around by explicitly constructing a `std::string`:
 {{{#!c++
 boost::phoenix::construct<foo>(std::string{"str"});
 }}}
 ...however, the automatic conversion from `char*` worked in Boost 1.62.0.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12733>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC