Opened 10 years ago

Closed 9 years ago

#8061 closed Bugs (fixed)

iterator_range::size() return type should be size_type, not difference_type

Reported by: Jan Vogelgesang <jan.vogelgesang@…> Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost 1.53.0 Severity: Problem
Keywords: Cc:

Description

The return type of iterator_range::size() should be size_type.

In the documentation (http://www.boost.org/doc/libs/1_53_0/libs/range/doc/html/range/reference/utilities/iterator_range.html) the return type is size_type, in trunk and 1.53 it is difference_type.

(This is same issue was discussed and resolved in Ticket #5971, however class iterator_range might be forgotten there)

Change History (2)

comment:1 by Mathias Gaunard, 9 years ago

The fix is trivial, is a patch needed?

comment:2 by Neil Groves, 9 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.