Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2002-09-05 14:44:18


From: "Yitzhak Sapir" <yitzhaks_at_[hidden]>

> On Thu, 5 Sep 2002, David Abrahams wrote:
>
> > From: "Yitzhak Sapir" <yitzhaks_at_[hidden]>
> >
> > <<The attached patch solves it using inheritance (operator[] is
inherited,
> > with the inherited class chosen based on Category), but is much more
> > complex than the above trick would have been.>>
> >
> > Does it pass all the regression tests?
>
> No. But the following patch almost does (for MSVC and MSVC+STLPort):
>
> Given:
> run libs/utility/counting_iterator_test.cpp
> run libs/utility/iterator_adaptor_test.cpp
> run libs/utility/transform_iterator_test.cpp
> run libs/utility/indirect_iterator_test.cpp
> run libs/utility/iter_traits_gen_test.cpp
> compile-fail libs/utility/iter_adaptor_fail_expected1.cpp
> compile-fail libs/utility/iter_adaptor_fail_expected2.cpp
> run libs/utility/iterator_traits_test.cpp
> run libs/utility/iterators_test.cpp
>
> It fails for iterators_test.cpp alone:
>

<snip>

Those look like testing library problems, not your bug. Gennadiy?

Anyway, please post your patch as an attachment so that it can still be
applied when I get it ;-)

Thanks,
Dave

-----------------------------------------------------------
           David Abrahams * Boost Consulting
dave_at_[hidden] * http://www.boost-consulting.com


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk