Boost logo

Boost Users :

Subject: Re: [Boost-users] zip_iterator documentation: probably malformed example
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-04 12:06:04


on Sat Sep 03 2011, Krzysztof Żelechowski <giecrilj-AT-stegny.2a.pl> wrote:

> At [http://www.boost.org/doc/libs/1_47_0/libs/iterator/doc/zip_iterator.html
> Zip Iterator]:
>
> is:: {{{zip_it->get<0>() = 42.0;}}} (syntax error)
> works:: {{{zip_it -> template get <0> () = 42.0;}}}

Not a bug, IMO. There's no reason to think we're writing in a template
here, and I see no reason to complicate the example by making that
assumption.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

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