Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2007-04-13 13:02:31

Bugs item #1700205, was opened at 2007-04-13 10:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: iterator
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: David Abrahams (david_abrahams)
Summary: boost::counting_iterator

Initial Comment:
The following example code

boost::counting_iterator<int> pi1(3);
boost::counting_iterator<int> pi2(7);
printf("diff %d, %d\n", pi2 - pi1, 5);

should print
  diff 4, 5
but instead wrongly prints
  diff 4, 0

Tested with gcc.


You can respond by visiting:

Take Surveys. Earn Cash. Influence the Future of IT
Join's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at