Boost logo

Boost Users :

From: Edward Diener (eldiener_at_[hidden])
Date: 2007-10-16 15:32:30


In the 1.34.1 documentation for optional<T>, in the Synopsis section, it
is currently written:

--------------------------------------------------------------------------

template<class InPlaceFactory> explicit optional ( InPlaceFactory const&
f ) ;

template<class TypedInPlaceFactory> explicit optional (
TypedInPlaceFactory const& f ) ;

AND

template<class InPlaceFactory> optional& operator = ( InPlaceFactory
const& f ) ;

template<class TypedInPlaceFactory> optional& operator = (
TypedInPlaceFactory const& f ) ;

--------------------------------------------------------------------------

Since InPlacefactory and TypedInPlacePlactory are actual classes, these
should be:

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

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

AND

template<InPlaceFactory> optional& operator = ( InPlaceFactory const& f ) ;

template<TypedInPlaceFactory> optional& operator = ( TypedInPlaceFactory
const& f ) ;

-------------------------------------------------------------------------

In the Detailed Semantics these are shown correctly.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net