Opened 12 years ago

Closed 12 years ago

#5378 closed Bugs (fixed)

Docs for optional::operator= with inplacefactory missing

Reported by: Yechezkel Mett <ymett.on.boost@…> Owned by: Fernando Cacciola
Milestone: To Be Determined Component: optional
Version: Boost 1.46.0 Severity: Problem
Keywords: optional in_place InPlaceFactory Cc:

Description

The documentation doesn't seem to mention that optional::operator= can take an InPlaceFactory. The only assignment operators mentioned are

optional& optional<T>::operator= ( T const& rhs ) ;
optional& optional<T>::operator= ( optional const& rhs ) ; 
template<U> optional& optional<T>::operator= ( optional<U> const& rhs ) ;

(and the equivalents for T&) none of which can take an InPlaceFactory. Presumably there should be something equivalent to the

template<InPlaceFactory> explicit optional<T>::optional( InPlaceFactory const& f ); 
template<TypedInPlaceFactory> explicit optional<T>::optional( TypedInPlaceFactory const& f );

constructors.

Change History (2)

comment:1 by Steven Watanabe, 12 years ago

I presume that you're referring to the Detailed Semantics page, as these operators to show up in the Synopsis.

comment:2 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [71048]) Add assignment operators taking an InPlaceFactory to the Detailed Semantics section. Fixes #5378.

Note: See TracTickets for help on using tickets.