Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::iterator_facade and assignment operation
From: Arun Ramasamy (aramasamy_at_[hidden])
Date: 2011-10-12 12:28:52


On 10/12/2011 12:17 PM, Michel Morin wrote:
> Arun Ramasamy wrote:
>> Thanks David. Here's some sample test code:
>> ...
>> class Iterator : public boost::iterator_facade<Iterator, int,
>> boost::bidirectional_traversal_tag>{
>> ...
>> IntVolume& volume;
>> int pos;
>>
>> };
> Your Iterator has a reference data member `volume`,
> so it cannot be copied. If you change a reference to a pointer,
> everything goes fine.
-- Ok cool. That fixed it. I didn't realize that I was unseating a
reference with the assignment. Thanks a lot.
> And please don't top-post!
> ( http://www.boost.org/community/policy.html#quoting )
>
>
> Regards,
> Michel
> _____________

> __________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users

-- 

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