[Boost-bugs] [Boost C++ Libraries] #1419: optional_base::operator=() optimization

Subject: [Boost-bugs] [Boost C++ Libraries] #1419: optional_base::operator=() optimization
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-08 01:41:13


#1419: optional_base::operator=() optimization
------------------------------+---------------------------------------------
 Reporter: anonymous | Owner: fcacciola
     Type: Patches | Status: new
Milestone: To Be Determined | Component: optional
  Version: Boost 1.34.1 | Severity: Optimization
 Keywords: |
------------------------------+---------------------------------------------
 Hi,

 {{{
 A a1;
 boost::optional<A> opt1(a1);
 boost::optional<A> opt2;
 opt2 = opt1;
 }}}

 the operator=() will call to assign(optional<U> const& rsh), not
 assign(optional_base const& rsh).

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/1419>
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:49:56 UTC