Boost logo

Boost Users :

Subject: Re: [Boost-users] boost.iterators - iterator_facade issue with aligned types.
From: Christoph Heindl (christoph.heindl_at_[hidden])
Date: 2011-01-20 14:46:45


On Wed, Jan 19, 2011 at 8:39 PM, Christoph Heindl
<christoph.heindl_at_[hidden]> wrote:
> On Wed, Jan 19, 2011 at 7:12 PM, Dave Abrahams <dave_at_[hidden]> wrote:
>>
>> I *think* that change is safe to make.  Care to submit it as a patch
>> at http://svn.boost.org/ ?
>
> Sure.

Failed to submit the patch twice. The server tells me to enable
cookies once I hit "Create Ticket", but cookies are enabled.

Here's my ticket content:

It seems to me that boost::iterator_facade cannot cope with aligned
types when the 'Reference = use_default' template argument is not a
reference, which can happen if transform_iterator is used to return
the result of a temporary calculation (by value of course).

Patch attached. Tested against non-boost test cases.

See
http://thread.gmane.org/gmane.comp.lib.boost.user/65215

Best regards,
Christoph




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