Boost logo

Boost :

Subject: Re: [boost] Small nitpick in boost::iterator
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-05-23 13:39:38


On 23/05/2011 19:14, Steven Watanabe wrote:
> AMDG
>
> On 05/23/2011 10:01 AM, Joel Falcou wrote:
>> Seems boost.Iterator pass some parameter by value in the make(Reference
>> r) function.
>> However, MSVC 2010 and I suspect below dont like passing value which
>> alignment is
>> greater than 8 ( **cough** SIMD vector **cough** )
>>
>> The fix is trivial, adding const& to this function. Should I go ahead
>> and commit this to trunk ?
>>
>
> In C++03, Reference const& is ill-formed if
> Reference is already a reference.

True, typename boost::add_reference<Reference>::type could work instead.


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