Boost logo

Boost Users :

From: Thorsten Ottosen (thorsten.ottosen_at_[hidden])
Date: 2008-02-18 05:20:02


Charles Brockman skrev:
> Is it possible to use Boost ptr_containers with Boost zip iterators?

> The line 267 (line 295 in the original version) referred to is:
> boost::zip_iterator< boost::tuples::tuple<
> std::vector<double>::const_iterator,
> std::vector<double>::const_iterator > > zip_it_begin( boost::make_tuple(
> vect1.begin(), vect2.begin() ) );
>
> Is it the void pointer in the ptr_vector which causes the problem?
>
> Can this marriage be saved?

Perhaps. Try to replace std::vector<double> with
boost::ptr_vector<double> in your tuple type.

-Thorsten


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