Boost logo

Boost Users :

From: Jeremy Siek (jsiek_at_[hidden])
Date: 2002-02-06 17:14:45


I don't have gcc 3.0.3, but I tried reproducing the problem with 3.0.2,
but that compiled with no problem (I assume it is the simple_example_2.cpp
file that you are having trouble with).

BTW, from the error msg below, it looks like the problem has to do with
the iterator_category type of std::basic_string, and its interaction with
the iterator_adaptor on which the token_iterator is based.

On Wed, 6 Feb 2002, fintaeph wrote:

cpoiri> Hi all,
cpoiri>
cpoiri> I have been having trouble getting the tokenizer examples to compile
cpoiri> using gcc 3.0.3 and stlport. I am using the example code from
cpoiri> http://www.boost.org/libs/tokenizer/escaped_list_separator.htm, with
cpoiri> the following compiler output:
cpoiri>
cpoiri> test.cpp: In instantiation of `::boost::::boost::iterator_ada
cpoiri> ptor<::boost::detail::::boost::detail::token_iterator_base<co
cpoiri> nst char *>,::boost::detail::::boost::detail::tokenizer_polic
cpoiri> y<::_STL::::_STL::basic_string<char,::_STL::::_STL::char_trai
cpoiri> ts<char>,::_STL::::_STL::allocator<char> >,::boost::::boost::
cpoiri> escaped_list_separator<char,::_STL::::_STL::char_traits<char>
cpoiri> > >,::_STL::::_STL::basic_string<char,::_STL::::_STL::char_t
cpoiri> raits<char>,::_STL::::_STL::allocator<char> >,const ::_STL:::
cpoiri> :_STL::basic_string<char,::_STL::::_STL::char_traits<char>,::
cpoiri> _STL::::_STL::allocator<char> > &,const ::_STL::::_STL::basic
cpoiri> _string<char,::_STL::::_STL::char_traits<char>,::_STL::::_STL
cpoiri> ::allocator<char> > *,::_STL::forward_iterator_tag,int>':
cpoiri> test.cpp:11: instantiated from here
cpoiri> test.cpp:11: `sizeof' applied to incomplete type `::boost::::
cpoiri> boost::STATIC_ASSERTION_FAILURE<false>'
cpoiri>
cpoiri> If anyone has encountered and solved this problem before, I would
cpoiri> greatly appreciate knowing what I'm doing wrong.
cpoiri>
cpoiri> Thanks,
cpoiri> Chris.
cpoiri>
cpoiri> P.S. I get similar results with all the tokenizer examples.
cpoiri>
cpoiri>
cpoiri>
cpoiri>
cpoiri>
cpoiri>
cpoiri>
cpoiri> Info: <http://www.boost.org>
cpoiri> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
cpoiri> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
cpoiri>
cpoiri>
cpoiri> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
cpoiri>
cpoiri>

----------------------------------------------------------------------
 Jeremy Siek http://php.indiana.edu/~jsiek/
 Ph.D. Student, Indiana Univ. B'ton email: jsiek_at_[hidden]
 C++ Booster (http://www.boost.org) office phone: (812) 855-3608
----------------------------------------------------------------------


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