Boost logo

Boost Users :

Subject: Re: [Boost-users] Odd limitation in Fusion design ?
From: Joel de Guzman (joel_at_[hidden])
Date: 2010-07-13 11:05:49


On 7/13/10 2:52 AM, John Dlugosz wrote:
>
>> Anyway, hope this helps.
>>
>> -regards, Larry
>>
>
>
> When I noticed that Fusion has its own metafunction to use instead of is_same, I figure
> it is there to make 'end' testing work correctly. That could be a documentation issue,
> but could be a semi-oversight that could be tightened up in the spec. That is,
> result_of::equal_to<T1,T2> returns true if they are iterators to the same position.
> 'end' should be considered a position. Does it work if the arguments are from
> different collections? Is 'end' equal for all collections or all collections of the
> same kind, or pot-luck?

I suggest you (re)read Fusion concepts (sequence and iterator concepts).
These are all documented (e.g. http://tinyurl.com/5llaf8).

Regards,

-- 
Joel de Guzman
http://www.boostpro.com
http://spirit.sf.net

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