Opened 10 years ago

Last modified 10 years ago

#1888 new Bugs

Why doesn't InputIterator require that reference is convertible to value_type?

Reported by: Eric Niebler Owned by: jsiek
Milestone: Boost 1.36.0 Component: concept_check
Version: Boost 1.35.0 Severity: Problem
Keywords: Cc:


Bug title says it all. boost::InputIterator? doesn't enforce any relationship between the reference and value_type associated types. Seems wrong to me, but perhaps there is a reason.

It also doesn't check that the type of dereferencing an input iterator is reference.

Attachments (0)

Change History (2)

comment:1 Changed 10 years ago by Dave Abrahams

Owner: changed from Dave Abrahams to Eric Niebler

For what it's worth, I think I merely updated the existing checking classes to use the new protocols, so I probably didn't consider making those changes. Feel free to fix them :-)

comment:2 Changed 10 years ago by Eric Niebler

Owner: changed from Eric Niebler to jsiek

Reassigning to the proper maintainer of BCCL, as listed in libs/maintainers.txt. Perhaps Jeremy could at least tell us if there was a reason for not enforcing the convertibility of reference to value_type for input iterators.

Modify Ticket

Change Properties
Set your email in Preferences
as new The owner will remain jsiek.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.