Also to keep in mind: usual custom, especially with iterators, is for the second iterator to not be included in the range (e.g., begin() points in the string, end() points one-past-the-end). So...
Type: Posts; User: tabstop
Also to keep in mind: usual custom, especially with iterators, is for the second iterator to not be included in the range (e.g., begin() points in the string, end() points one-past-the-end). So...
substr does not take iterators. string has a constructor that takes iterators, plus you have all the stuff in <algorithm>, like copy.
(EDIT: Looks like I read it backwards. If you have indices...