Opened 12 years ago

Closed 12 years ago

#4271 closed Bugs (fixed)

split_iterator copy ctor does not copy eof flag

Reported by: martin.janzen@… Owned by: Pavol Droba
Milestone: Boost 1.43.0 Component: string_algo
Version: Boost 1.43.0 Severity: Problem
Keywords: split_iterator Cc:

Description

The copy constructor does not copy the m_bEof flag; it always sets it to false. This means that equality tests fail incorrectly, possibly resulting in endless loops, etc.

Attachments (1)

boost_split_iterator_bug.cpp (1.3 KB ) - added by martin.janzen@… 12 years ago.
Test program to demonstrate copy ctor eof-flag bug

Download all attachments as: .zip

Change History (2)

by martin.janzen@…, 12 years ago

Test program to demonstrate copy ctor eof-flag bug

comment:1 by Steven Watanabe, 12 years ago

Resolution: fixed
Status: newclosed

(In [62696]) Copy m_bEof in the split_iterator copy constructor. Fixes #4271

Note: See TracTickets for help on using tickets.