Opened 11 years ago

Closed 11 years ago

Last modified 9 years ago

#5971 closed Bugs (fixed)

size() return type should be size_type, not difference_type

Reported by: Olaf van der Spek <olafvdspek@…> Owned by: Neil Groves
Milestone: Boost 1.50.0 Component: range
Version: Boost 1.47.0 Severity: Problem
Keywords: Cc:

Description

The return type of size() should be size_type.

Change History (4)

comment:1 by Andrey Semashev, 11 years ago

There have been discussion about this issue on the dev ML:

http://comments.gmane.org/gmane.comp.lib.boost.devel/224758

comment:2 by Neil Groves, 11 years ago

Milestone: To Be DeterminedBoost 1.50.0
Resolution: fixed
Status: newclosed

Done at last! Thanks for patiently waiting for my health to improve.

comment:3 by Olaf van der Spek <olafvdspek@…>, 10 years ago

Hi Neil,

Are you sure this was fixed?

boost_1_53_0\boost\range\iterator_range_core.hpp:

difference_type size() const
{
  return m_End - m_Begin;
}

comment:4 by anonymous, 9 years ago

Mr Groves?

Note: See TracTickets for help on using tickets.