>>351
自己解決しました。単なる写し間違いでした…orz
ちなみに下から5行目です。
×begIdx=line.find_first_not_of(delims,begIdx);
○begIdx=line.find_first_not_of(delims,endIdx);