Boost logo

Boost Users :

From: Alex Vinokur (alexvn_at_[hidden])
Date: 2005-12-24 02:06:51


"Pavol Droba" <droba_at_[hidden]> wrote in message news:20051223180408.GP15407_at_lenin.felcer.sk...
> Hi,
>
> You might be able to do it using the string_algo find_iterator.
>
> #include <boost/algorithm/string.hpp>
>
> using namespace std;
> using namespace boost;
>
> ...
>
[snip]
typedef split_iterator<string::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<char*, std::basic_string<char,
std::char_traits<char>, std::allocator<char> > > >' to non-scalar type
`boost::algorithm::split_iterator<__gnu_cxx::__normal_iterator<char*, std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >' requested

g++ - 3.4.4-1
boost - 1.33.1-1
------------------------------------------------------------------------------
>
> for(int i=0; i<maxi; i++)
> for(int j=0; j<maxj; j++)
> {
> if(It!=string_find_iterator())
> {
> v[i][j]=*It;
> }
> else
> {
> break;
> }
> }
>
>
[snip]

Regards,

-- 
 Alex Vinokur
     email: alex DOT vinokur AT gmail DOT com
     http://mathforum.org/library/view/10978.html
     http://sourceforge.net/users/alexvn

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net