[Boost-bugs] [Boost C++ Libraries] #12788: optional 1.63 no longer can be initialized from '<brace-enclosed initializer list>'

Subject: [Boost-bugs] [Boost C++ Libraries] #12788: optional 1.63 no longer can be initialized from '<brace-enclosed initializer list>'
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-01-25 09:19:18


#12788: optional 1.63 no longer can be initialized from '<brace-enclosed
initializer list>'
------------------------------+-----------------------
 Reporter: piotrwn1@… | Owner: fcacciola
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: optional
  Version: Boost 1.63.0 | Severity: Problem
 Keywords: |
------------------------------+-----------------------
 The code below compiles fine with boost.1.62 - but it can't compile with
 boost1.63:


 {{{
     struct S
     {
         int a;
         int b;
     };
     boost::optional<S> so;
     so = {1,2};

 }}}

 With error:

 error: no match for 'operator=' (operand types are 'boost::optional<S>'
 and '<brace-enclosed initializer list>')

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12788>
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