Pavol Droba wrote:
On Sat, Dec 24, 2005 at 09:06:51AM +0200, Alex Vinokur wrote:
"Pavol Droba"
wrote in message news:20051223180408.GP15407@lenin.felcer.sk... Hi,
You might be able to do it using the string_algo find_iterator.
#include
using namespace std; using namespace boost;
...
[snip] typedef split_iteratorstring::iterator string_find_iterator; ------------------------------------------------------------------------------
string_find_iterator It=make_find_iterator(str1, token_finder(is_space()));
That line produces the following error message:
error: conversion from `boost::algorithm::find_iterator<__gnu_cxx::__normal_iterator
> >' to non-scalar type `boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator > >' requested Sorry, I have fixed one error, but the other line was tied to it. the second line should be string_find_iterator It=make_split_iterator(str1, token_finder(is_space()));
Regards, Pavol
Thanks.
Here is what I compiled:
--------
#include<iostream>
#include