
Hi Aleksey, The new MPL document is very nice! I believe the synopsis for replace_if (http://www.boost.org/libs/mpl/doc/refmanual/replace-if.html) is missing the third template parameter. Is that correct? Jonathan

"Jonathan Turkanis" <technews@kangaroologic.com> writes:
Hi Aleksey,
The new MPL document is very nice!
I believe the synopsis for replace_if (http://www.boost.org/libs/mpl/doc/refmanual/replace-if.html) is missing the third template parameter. Is that correct?
?? I see three template parameters there. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

"David Abrahams" <dave@boost-consulting.com> wrote in message news:u1xen6t8a.fsf@boost-consulting.com...
"Jonathan Turkanis" <technews@kangaroologic.com> writes:
Hi Aleksey,
The new MPL document is very nice!
I believe the synopsis for replace_if (http://www.boost.org/libs/mpl/doc/refmanual/replace-if.html) is missing the third template parameter. Is that correct?
?? I see three template parameters there.
Me to ;-) But the section labeled "Parameters" shows four parameters, with the inserter being the fourth, and so does the source code. Under the synopsis there's a note "this wording applies to a no-inserter version(s) of the algorithm. See the Expression semantics subsection for a precise specification." I'm not sure what this note means, since the third parameter is labeled "In" for "Inserter". Maybe the third parameter in the synopsis should be labeled "NewType." Or is it a dual-purpose "NewTypeOrInserter"? Jonathan

"Jonathan Turkanis" <technews@kangaroologic.com> writes:
"David Abrahams" <dave@boost-consulting.com> wrote in message news:u1xen6t8a.fsf@boost-consulting.com...
"Jonathan Turkanis" <technews@kangaroologic.com> writes:
Hi Aleksey,
The new MPL document is very nice!
I believe the synopsis for replace_if (http://www.boost.org/libs/mpl/doc/refmanual/replace-if.html) is missing the third template parameter. Is that correct?
?? I see three template parameters there.
Me to ;-) But the section labeled "Parameters" shows four parameters, with the inserter being the fourth, and so does the source code.
Ah, thanks.
Under the synopsis there's a note "this wording applies to a no-inserter version(s) of the algorithm. See the Expression semantics subsection for a precise specification." I'm not sure what this note means, since the third parameter is labeled "In" for "Inserter".
The inserter parameter is optional.
Maybe the third parameter in the synopsis should be labeled "NewType."
probably.
Or is it a dual-purpose "NewTypeOrInserter"?
No, you always have to supply NewType. -- Dave Abrahams Boost Consulting http://www.boost-consulting.com
participants (2)
-
David Abrahams
-
Jonathan Turkanis