Opened 12 years ago
Closed 12 years ago
#5378 closed Bugs (fixed)
Docs for optional::operator= with inplacefactory missing
Reported by: | 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 , 12 years ago
comment:2 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [71048]) Add assignment operators taking an InPlaceFactory to the Detailed Semantics section. Fixes #5378.
Note:
See TracTickets
for help on using tickets.
I presume that you're referring to the Detailed Semantics page, as these operators to show up in the Synopsis.