Boost logo

Boost :

From: Max Khesin (MKhesin_at_[hidden])
Date: 2004-05-14 13:11:36


I think another alternative would be to use this for counting functionality:
http://www.boost.org/libs/iterator/doc/counting_iterator.html
and dumb down your function_input_iterator to be a very simple
Incrementable.
m.

-----Original Message-----
From: Neal D. Becker [mailto:ndbecker2_at_[hidden]]
Sent: Friday, May 14, 2004 12:01 PM
To: boost_at_[hidden]
Subject: [boost] Re: [iterator facade] Why is dereference const?

David Abrahams wrote:

> "Neal D. Becker" <ndbecker2_at_[hidden]> writes:
>
>> Max Khesin wrote:
>>
>>>
>>>> "Neal D. Becker" <ndbecker2_at_[hidden]> writes:
>>>
>>> Good suggestion! I'll post the modified code if anyone is interested.
>>>
>>>
>>>
>>> Yes pleaze.
>>
>> Here is the current version:
>
> distance_to doesn't belong here, and you can eliminate the
> corresponding cnt.
>

Actually, I like the one based on Vladimir Prus much better than the one I
wrote, so here is the current:
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.


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