[C++-sig] Re: Call policies for unreferencing iterator ...

David Abrahams dave at boost-consulting.com
Fri Jul 11 16:51:35 CEST 2003


Pierre Barbier de Reuille <pierre.barbier at cirad.fr> writes:

> My problem is I don't know how to tie the
> lifetime of the object with the container ... and I don't even think
> it's possible to do that. 

Certainly not, if the iterator doesn't have a reference to the Python
container embedded in it.

> What would you do ?

Redesign my interface, I guess.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com





More information about the Cplusplus-sig mailing list