Boost logo

Boost :

From: Edward Diener (eldiener_at_[hidden])
Date: 2007-10-19 17:44:07


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 list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk