Opened 15 years ago

Closed 15 years ago

#1419 closed Patches (fixed)

optional_base::operator=() optimization

Reported by: anonymous Owned by: Fernando Cacciola
Milestone: Boost 1.35.0 Component: optional
Version: Boost 1.34.1 Severity: Optimization
Keywords: Cc: fernando_cacciola@…

Description

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).

Change History (1)

comment:1 by Fernando Cacciola, 15 years ago

Milestone: To Be DeterminedBoost 1.35.0
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.