Boost C++ Libraries: Ticket #11087: Converting assignment operator is too generous https://svn.boost.org/trac10/ticket/11087 <p> This has been reported by Karol Nowacki. The following program compiles although it shoudl not. </p> <pre class="wiki">#include &lt;boost/optional.hpp&gt; enum E1 {e1}; enum E2 {e2}; int main() { boost::optional&lt;E2&gt; o2(e2); boost::optional&lt;E1&gt; o1; o1 = o2; // SHOULD NOT WORK } </pre><p> It should not compile given that the following do not compile: </p> <pre class="wiki">E1 v1 = e2; // FAILS E1 v1_; v1_ = e2; // FAILS </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11087 Trac 1.4.3 akrzemi1 Mon, 23 Mar 2015 20:36:14 GMT owner, status, milestone changed https://svn.boost.org/trac10/ticket/11087#comment:1 https://svn.boost.org/trac10/ticket/11087#comment:1 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Fernando Cacciola</span> to <span class="trac-author">akrzemi1</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.58.0</span> </li> </ul> Ticket akrzemi1 Mon, 23 Mar 2015 20:36:31 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11087#comment:2 https://svn.boost.org/trac10/ticket/11087#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> Ticket