Opened 12 years ago

Closed 11 years ago

#5236 closed Bugs (fixed)

Issue with uneven stride

Reported by: Chris Jefferson Owned by: Neil Groves
Milestone: To Be Determined Component: range
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

The attached testcase I think shows that striding a vector of length 1 with a step of length 2 misbehaves.

This is a reduced sample of what happens when strided.cpp is used with libc++ std::deques, but the bug will show on any compiler.

Expected output: 0 (I think) 0 0

Received output: 1 0 -1

Attachments (1)

t.cc (631 bytes ) - added by Chris Jefferson 12 years ago.
range example

Download all attachments as: .zip

Change History (3)

by Chris Jefferson, 12 years ago

Attachment: t.cc added

range example

comment:1 by Neil Groves, 11 years ago

Thank you for your report. The correct expected output should have been 1 0 0.

This has been fixed and committed to the trunk.

comment:2 by Neil Groves, 11 years ago

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