Re: [Boost-bugs] [Boost C++ Libraries] #3461: bug in iter_split or nth_finder

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3461: bug in iter_split or nth_finder
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-09-17 18:11:31

#3461: bug in iter_split or nth_finder
  Reporter: cwadswor@… | Owner: pavol_droba
      Type: Bugs | Status: closed
 Milestone: Boost 1.41.0 | Component: string_algo
   Version: Boost 1.40.0 | Severity: Problem
Resolution: invalid | Keywords:
Changes (by pavol_droba):

  * status: new => closed
  * resolution: => invalid



 The described behavior is perfectly correct. I'm afraid you've
 misunderstood the semantics of iter_split.
 If works as follows:
 1. set the start marker to the beginning of the sequence
 2. using the supplied finder, find the first splitter after the marker
 3. return the match between start marker and splitter
 4. move the start marker at the end of splitter and goto 2.

 On other words, using nth_finder with iter-split will not split the
 in two parts, rather it will split at every n-th splitter.

 When you set nth index to 0, nth_finder works exatly as the first_finder,
 so the
 sequence is split at every splitter.

 Best Regards,

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC